# SortModel

> _Since v0.1.1_

Represents a single column's sort configuration within a multi-sort model.

The **order** of `SortModel` entries in the array determines sort precedence:
the first entry is the primary sort, the second breaks ties in the primary, and so on.

#### Example

```typescript
// Primary: department ascending, secondary: salary descending
const sortModel: SortModel[] = [
  { field: 'department', direction: 'asc' },
  { field: 'salary', direction: 'desc' },
];
```

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `field` | <code>string</code> | The column field key to sort by. Must match a `field` in the grid's column configuration. |
| `direction` | <code>desc &#124; asc</code> | Sort direction: `'asc'` for ascending (A→Z, 0→9), `'desc'` for descending (Z→A, 9→0). |
