API reference: @salmonui/data-grid/engine
sortRowOrderfunction
import { sortRowOrder } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/sort.
function sortRowOrder<Row>(rows: readonly Row[], order: Int32Array | null, keys: readonly SortKey<Row>[], locale: string, warm?: readonly CompiledColumn<Row>[]): Int32Array;
Stable multi-key sort of order (source indexes; null = identity over
rows). Returns a new array; the input is never written.