UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

10 lines (9 loc) 599 B
import { OrderByClause } from '../ir.js'; import { NamespacedAndKeyedStream, NamespacedRow } from '../../types.js'; import { IStreamBuilder, KeyValue } from '@tanstack/db-ivm'; /** * Processes the ORDER BY clause * Works with the new structure that has both namespaced row data and __select_results * Always uses fractional indexing and adds the index as __ordering_index to the result */ export declare function processOrderBy(pipeline: NamespacedAndKeyedStream, orderByClause: Array<OrderByClause>, limit?: number, offset?: number): IStreamBuilder<KeyValue<unknown, [NamespacedRow, string]>>;