View as Markdown

API reference: @salmonui/data-grid/engine

effectiveSortKeysfunction

import { effectiveSortKeys } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/sort.

function effectiveSortKeys<Row>(query: DataQuery, columns: ColumnSnapshot<Row>): SortKey<Row>[];

Effective sort keys: grouped columns first (direction from the sort list, else the group descriptor, else ascending), then the remaining sort descriptors. Unknown columns are ignored.