MCPcopy Create free account
hub / github.com/Noumena-Network/code / sortByName

Function sortByName

src/surfaceInventory.ts:127–129  ·  view source on GitHub ↗
(entries: readonly T[])

Source from the content-addressed store, hash-verified

125] as const
126
127function sortByName<T extends { name: string }>(entries: readonly T[]): T[] {
128 return [...entries].sort((a, b) => a.name.localeCompare(b.name))
129}
130
131function toModelToolSurfaceEntry(tool: ToolLike): ModelToolSurfaceEntry {
132 return {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected