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

> The SortColumnCommand type of @salmonui/data-grid/engine: Sorts one column; multi keeps the other sorted columns.

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

```ts
import type { SortColumnCommand } 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: type

```ts
type SortColumnCommand = {
    type: 'sort.column';
    columnId: ColumnId;
    direction: 'asc' | 'desc';
    multi?: boolean;
};
```

Sorts one column; `multi` keeps the other sorted columns.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'sort.column';` |  |  |
| `columnId` | `columnId: ColumnId;` |  |  |
| `direction` | `direction: 'asc' \| 'desc';` |  |  |
| `multi` | `multi?: boolean;` | optional |  |
