# CustomSort

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

A column sorted in a fixed order instead of the normal comparison.

`ColumnId` is the column. `SortedValues` is the order: listed values come first, in that order, and any other value sorts after them. Date values are stored as ISO dates (`yyyy-MM-dd`). Suspend with `IsSuspended`.

```ts title="TypeScript"
export interface CustomSort extends SuspendableObject 
```

###### Extends

[`SuspendableObject`](https://www.adaptabletools.com/docs/reference/suspendableobject.md)

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [ColumnId](https://www.adaptabletools.com/docs/reference/customsort.md#columnid) | `string` | Id of Column on which Custom Sort will be applied |
| [Name](https://www.adaptabletools.com/docs/reference/customsort.md#name) | `string` | Name of the Custom Sort definition |
| [SortedValues](https://www.adaptabletools.com/docs/reference/customsort.md#sortedvalues) | `(string \| number)[]` | Sort order. Listed values come first, in this order. Any other value sorts after them. Dates are stored as ISO strings (`yyyy-MM-dd`). |
| [IsReadOnly](https://www.adaptabletools.com/docs/reference/customsort.md#isreadonly) | `boolean` | Sets Entity to ReadOnly (overwriting a Strategy Entitlement of &#39;Full&#39;) |
| [IsSuspended](https://www.adaptabletools.com/docs/reference/customsort.md#issuspended) | `boolean` | Suspends (i.e. turns off) an Adaptable Object |

## Property Details

### ColumnId

Id of Column on which Custom Sort will be applied

```ts title="TypeScript"
ColumnId: string;
```

###### Property Value

`string`

### Name

Name of the Custom Sort definition

```ts title="TypeScript"
Name: string;
```

###### Property Value

`string`

### SortedValues

Sort order. Listed values come first, in this order. Any other value sorts after them. Dates are stored as ISO strings (`yyyy-MM-dd`).

```ts title="TypeScript"
SortedValues?: (string | number)[];
```

###### Property Value

`(string | number)[]`

### IsSuspended

> *Inherited from [SuspendableObject](https://www.adaptabletools.com/docs/reference/suspendableobject.md)*

Suspends (i.e. turns off) an Adaptable Object

```ts title="TypeScript"
IsSuspended?: boolean;
```

###### Property Value

`boolean`

### IsReadOnly

> *Inherited from [AdaptableObject](https://www.adaptabletools.com/docs/reference/adaptableobject.md)*

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of &#39;Full&#39;)

```ts title="TypeScript"
IsReadOnly?: boolean;
```

###### Property Value

`boolean`
