MCPcopy Create free account
hub / github.com/deepnote/deepnote / sortById

Function sortById

packages/convert/src/snapshot/resolve-init.ts:243–244  ·  view source on GitHub ↗
(arr: ReadonlyArray<T>)

Source from the content-addressed store, hash-verified

241 if (a.length !== b.length) return false
242
243 const sortById = <T extends { id: string }>(arr: ReadonlyArray<T>): ReadonlyArray<T> =>
244 [...arr].sort((x, y) => x.id.localeCompare(y.id))
245
246 const aSorted = sortById(a)
247 const bSorted = sortById(b)

Callers 1

areIntegrationsEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected