MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / compareText

Function compareText

graph-ui/src/galaxy/reader-hierarchy.ts:16–16  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

14}
15
16const compareText = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0;
17const compareNodes = (a: GraphNode, b: GraphNode) => compareText(a.file_path ?? '', b.file_path ?? '')
18 || (a.start_line ?? 0) - (b.start_line ?? 0)
19 || compareText(a.qualified_name ?? a.name, b.qualified_name ?? b.name) || a.id - b.id;

Callers 2

compareNodesFunction · 0.70
projectReaderHierarchyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected