MCPcopy Index your code
hub / github.com/tinyplex/tinybase / defaultSorter

Function defaultSorter

src/common/index.ts:12–15  ·  view source on GitHub ↗
(
  sortKey1: SortKey,
  sortKey2: SortKey,
)

Source from the content-addressed store, hash-verified

10export * from './hash.ts';
11
12export const defaultSorter: typeof defaultSorterDecl = (
13 sortKey1: SortKey,
14 sortKey2: SortKey,
15): number => ((sortKey1 ?? 0) < (sortKey2 ?? 0) ? -1 : 1);

Callers 1

getSortedRowIdsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…