MCPcopy Index your code
hub / github.com/TanStack/db / sortedPlainRows

Function sortedPlainRows

packages/db/tests/query/includes.test.ts:124–128  ·  view source on GitHub ↗
(collectionOrArray: any, sortKey = `id`)

Source from the content-addressed store, hash-verified

122}
123
124function sortedPlainRows(collectionOrArray: any, sortKey = `id`): Array<any> {
125 return plainRows(collectionOrArray).sort(
126 (a: any, b: any) => a[sortKey] - b[sortKey],
127 )
128}
129
130/**
131 * Recursively converts a live query collection (or child Collection) into a

Callers 2

childItemsFunction · 0.85
includes.test.tsFile · 0.85

Calls 1

plainRowsFunction · 0.85

Tested by

no test coverage detected