MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / sortCounts

Function sortCounts

freebuff/web/src/server/live-stats.ts:52–54  ·  view source on GitHub ↗
(rows: T[])

Source from the content-addressed store, hash-verified

50}
51
52function sortCounts<T extends { count: number }>(rows: T[]): T[] {
53 return [...rows].sort((a, b) => b.count - a.count)
54}
55
56export async function getFreebuffLiveStats(
57 now?: Date,

Callers 1

getFreebuffLiveStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected