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

> The SortOptions interface of @salmonui/data-grid/engine.

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

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

```ts
interface SortOptions {
    readonly enabled?: boolean;
    readonly mode?: SortMode;
    readonly allowUnsort?: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `enabled` | `readonly enabled?: boolean;` | optional | Enables sorting. When false, interactive sort commands are rejected. Default true. |
| `mode` | `readonly mode?: SortMode;` | optional | Single or multi-column sorting. Default `'multiple'`. |
| `allowUnsort` | `readonly allowUnsort?: boolean;` | optional | The third toggle click clears the column. Default true. |
