# createSortModule (@salmonui/data-grid/engine)

> The createSortModule function of @salmonui/data-grid/engine: Creates the sort module. Options are read from options.sort (SortOptions); the initial sort comes from options.defaultQuery.sorting.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/createSortModule

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

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: function

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

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