Skip to content

@hobom-grid/core


@hobom-grid/core / SortSpec

Type Alias: SortSpec<TRow>

SortSpec<TRow> = Readonly<{ compare?: (a, b) => number; direction: SortDirection; key: keyof TRow; }>

Defined in: row-model/row-model.ts:43

Sort specification for a single column. Multiple specs form a multi-column sort (first spec wins, tie-break by next).

Type Parameters

TRow

TRow