Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BrasilAPI/BrasilAPI
/ compareAsc
Function
compareAsc
services/tuss/index.js:51–55 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
49
}
50
51
function
compareAsc(a, b) {
52
if
(a < b)
return
-1;
53
if
(a > b)
return
1;
54
return
0;
55
}
56
57
function
sortTerms(terms, sort =
'tuss'
, order =
'asc'
) {
58
const
isDesc = String(order).toLowerCase() ===
'desc'
;
Callers
1
sortTerms
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected