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

> The SortDescriptorInput type of @salmonui/data-grid/engine: JSON form of a SortDescriptor in command payloads.

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

```ts
import type { SortDescriptorInput } 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 SortDescriptorInput = {
    columnId: ColumnId;
    direction: 'asc' | 'desc';
};
```

JSON form of a `SortDescriptor` in command payloads.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `columnId` | `columnId: ColumnId;` |  |  |
| `direction` | `direction: 'asc' \| 'desc';` |  |  |
