MCPcopy Index your code
hub / github.com/github/copilot-sdk / sortByPascalName

Function sortByPascalName

scripts/codegen/go.ts:154–156  ·  view source on GitHub ↗
(entries: [string, T][])

Source from the content-addressed store, hash-verified

152}
153
154function sortByPascalName<T>(entries: [string, T][]): [string, T][] {
155 return entries.sort(([left], [right]) => toPascalCase(left).localeCompare(toPascalCase(right)));
156}
157
158function compareGoTypeNames(left: string, right: string): number {
159 return left.localeCompare(right);

Callers 4

collectRpcMethodsFunction · 0.85
emitApiGroupFunction · 0.85
emitRpcWrapperFunction · 0.85
collectClientGroupsFunction · 0.85

Calls 1

toPascalCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…