> **Experimental**
>
> `@aws-cdk/aws-redshift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# TableSortStyle

The sort style of a table.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/table.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-redshift-alpha/lib/table.ts#L390)

## Example

```ts
new Table(this, 'Table', {
  tableColumns: [
    { name: 'col1', dataType: 'varchar(4)', sortKey: true },
    { name: 'col2', dataType: 'float', sortKey: true },
  ],
  cluster: cluster,
  databaseName: 'databaseName',
  sortStyle: TableSortStyle.COMPOUND,
});
```

## Members

| Member | Description |
| --- | --- |
| `AUTO` | Amazon Redshift assigns an optimal sort key based on the table data. |
| `COMPOUND` | Specifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed. |
| `INTERLEAVED` | Specifies that the data is sorted using an interleaved sort key. |

## Referenced by

- [`TableProps`](/v2/docs/@aws-cdk_aws-redshift-alpha.TableProps).sortStyle
