# ColumnSort

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

One column in a layout sort.

On `Layout.ColumnSorts`, the array order is the sort priority: the first entry is the primary sort. `SortOrder` is `'Asc'` or `'Desc'`.

```ts title="TypeScript"
export interface ColumnSort 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [ColumnId](https://www.adaptabletools.com/docs/reference/columnsort.md#columnid) | `string` | Id of Column being sorted |
| [SortOrder](https://www.adaptabletools.com/docs/reference/columnsort.md#sortorder) | `'Asc' \| 'Desc'` | How Column is sorted - either &#39;Asc&#39; or &#39;Desc&#39; |

## Property Details

### ColumnId

Id of Column being sorted

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

###### Property Value

`string`

### SortOrder

How Column is sorted - either &#39;Asc&#39; or &#39;Desc&#39;

```ts title="TypeScript"
SortOrder: 'Asc' | 'Desc';
```

###### Property Value

`'Asc' | 'Desc'`
