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

> The effectiveSortKeys function of @salmonui/data-grid/engine: 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.

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

```ts
import { effectiveSortKeys } 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 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.
