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

Function compare

graph-ui/src/architecture/semantic-graph.ts:102–102  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

100}
101
102const compare = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0;
103const identity = (node: GraphNode) => `${node.label}:${node.qualified_name || `#${node.id}`}@${node.file_path ?? ''}`;
104const nodeOrder = (a: GraphNode, b: GraphNode) => compare(identity(a), identity(b));
105const symbolId = (node: GraphNode) => `symbol:${identity(node)}`;

Callers 6

nodeOrderFunction · 0.70
aggregateFunction · 0.70
hierarchyNodeOrderFunction · 0.70
sortChildrenFunction · 0.70
buildSemanticGraphFunction · 0.70
cappedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected