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

> The getSortInfo function of @salmonui/data-grid/engine: Per-column header state for renderers: direction and 1-based priority, or null.

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

```ts
import { getSortInfo } 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 getSortInfo(query: DataQuery, columnId: ColumnId): {
    readonly direction: 'asc' | 'desc';
    readonly priority: number;
} | null;
```

Per-column header state for renderers: direction and 1-based priority, or null.
