MCPcopy Create free account
hub / github.com/codeaashu/claude-code / compareAgentsByName

Function compareAgentsByName

src/tools/AgentTool/agentDisplay.ts:97–104  ·  view source on GitHub ↗
(
  a: AgentDefinition,
  b: AgentDefinition,
)

Source from the content-addressed store, hash-verified

95 * Compare agents alphabetically by name (case-insensitive).
96 */
97export function compareAgentsByName(
98 a: AgentDefinition,
99 b: AgentDefinition,
100): number {
101 return a.agentType.localeCompare(b.agentType, undefined, {
102 sensitivity: 'base',
103 })
104}
105

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected