View as Markdown

API reference: @salmonui/data-grid/engine

createSortModulefunction

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

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

function createSortModule<Row>(): SortModule<Row>;

Creates the sort module. Options are read from options.sort (SortOptions); the initial sort comes from options.defaultQuery.sorting.