MCPcopy Index your code
hub / github.com/ether/etherpad / cmpStr

Function cmpStr

src/node/hooks/express/adminsettings.ts:271–271  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

269 // ── 7. Sort + slice ────────────────────────────────────────────
270 const dir = query.ascending ? 1 : -1;
271 const cmpStr = (a: string, b: string) => a < b ? -dir : a > b ? dir : 0;
272 const cmpNum = (a: number, b: number) => a < b ? -dir : a > b ? dir : 0;
273
274 let results: PadQueryResult[];

Callers 1

adminsettings.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected