Remote / foldkit-remote-drizzle

compileOrderBy

function · packages/remote-drizzle/src/compile.ts:380

function compileOrderBy(
  body: AnyQuery,
  target: CompileTarget,
  input: Readonly<Record<string, unknown>>,
  query: string,
): ReadonlyArray<OrderTerm>

The body's ordering for one input, as this package's order terms: a chosen order resolved to the field or call the input names, a call compiled to its SQL under its collation. An input naming no order it offers is the request's mistake, refused as a compile error.