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

Function buildCompareOptions

packages/db/src/query/compiler/order-by.ts:388–401  ·  view source on GitHub ↗
(
  clause: OrderByClause,
  collection: CollectionLike<any, any>,
)

Source from the content-addressed store, hash-verified

386 * different string collation behavior.
387 */
388export function buildCompareOptions(
389 clause: OrderByClause,
390 collection: CollectionLike<any, any>,
391): CompareOptions {
392 if (clause.compareOptions.stringSort !== undefined) {
393 return clause.compareOptions
394 }
395
396 return {
397 ...collection.compareOptions,
398 direction: clause.compareOptions.direction,
399 nulls: clause.compareOptions.nulls,
400 }
401}

Callers 2

getOrderedKeysFunction · 0.90
processOrderByFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected