Skip to main content

Function: applySort()

applySort<Row>(spec, rows, sort): Row[]

Defined in: packages/sdvtables/src/engine.ts:227

Beta

A sorted copy of rows (stable; missing values last in both directions); sort null keeps the input order. Engine plumbing for custom renderers: it may change before 1.0.

Type Parameters​

Row​

Row

Parameters​

spec​

TableSpec<Row>

rows​

readonly Row[]

sort​

Sort | null

Returns​

Row[]