MCPcopy Create free account
hub / github.com/TanStack/db / orderByClause

Function orderByClause

packages/db/tests/query/predicate-utils.test.ts:64–76  ·  view source on GitHub ↗
(
  expression: BasicExpression,
  direction: `asc` | `desc` = `asc`,
)

Source from the content-addressed store, hash-verified

62}
63
64function orderByClause(
65 expression: BasicExpression,
66 direction: `asc` | `desc` = `asc`,
67): OrderByClause {
68 return {
69 expression,
70 compareOptions: {
71 direction,
72 nulls: `last`,
73 stringSort: `lexical`,
74 },
75 }
76}
77
78describe(`isWhereSubset`, () => {
79 describe(`basic cases`, () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected