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

Function ordered

graph-ui/src/galaxy/selection-evidence.ts:89–90  ·  view source on GitHub ↗
(side: Map<string, Set<number>>)

Source from the content-addressed store, hash-verified

87 || left.path.localeCompare(right.path) || left.name.localeCompare(right.name)).slice(0, RELATED_NAMES_PER_GROUP);
88 };
89 const ordered = (side: Map<string, Set<number>>) => [...side].sort(([leftType, left], [rightType, right]) =>
90 right.size - left.size || leftType.localeCompare(rightType));
91 const sides = [ordered(related.incoming), ordered(related.outgoing)];
92 const candidates = sides.flat().map(([, members]) => ranked(members));
93 const shares = fairShares(candidates.map(namesCost), nameCharacters);

Callers 1

scopeRelationshipsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected