# CustomSortState

Canonical page: https://www.adaptabletools.com/docs/reference/customsortstate

Custom Sort section of Adaptable State, including Initial State.

Each entry replaces the normal sort of one column with the order in `SortedValues`. Values in that list sort in list order. Values absent from the list sort after them, using the normal comparison. A custom sort comparer registered for the column is used instead of `SortedValues`.

```ts title="TypeScript"
export interface CustomSortState extends BaseState 
```

###### Extends

[`BaseState`](https://www.adaptabletools.com/docs/reference/basestate.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [CustomSorts](https://www.adaptabletools.com/docs/reference/customsortstate.md#customsorts) | [`CustomSort`](https://www.adaptabletools.com/docs/reference/customsort.md)`[]` | Custom Sorts to apply. One column uses the first Custom Sort whose `ColumnId` matches. |

## Property Details

### CustomSorts

Custom Sorts to apply. One column uses the first Custom Sort whose `ColumnId` matches.

```ts title="TypeScript"
CustomSorts?: CustomSort[];
```

###### Property Value

[`CustomSort`](https://www.adaptabletools.com/docs/reference/customsort.md)`[]`
