# GridSortChangedDetail

Fields, allowed values, and APIs that use GridSortChangedDetail.

Canonical: https://grid.syidax.com/docs/types/GridSortChangedDetail/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface GridSortChangedDetail {
  field: string | null;
  direction: 'asc' | 'desc' | null;
  previous: ActiveSort | null;
  sortModel: SortModelEntry[];
  previousModel: SortModelEntry[];
}
```

<a id="used-by"></a>

## APIs using this type

- [sortChanged](https://grid.syidax.com/docs/events/sortChanged.md) — Emitted when sorting changes. Reflect the current model in app query conditions or saved view state.

<a id="related"></a>

## Related types

- [ActiveSort](https://grid.syidax.com/docs/types/ActiveSort.md)
- [SortModelEntry](https://grid.syidax.com/docs/types/SortModelEntry.md)
