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

Sort field definition for Iceberg 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-s3tables-alpha/lib/table.ts#L466)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as s3tables_alpha from '@aws-cdk/aws-s3tables-alpha';

declare const icebergTransform: s3tables_alpha.IcebergTransform;
const icebergSortField: s3tables_alpha.IcebergSortField = {
  direction: s3tables_alpha.SortDirection.ASC,
  nullOrder: s3tables_alpha.NullOrder.NULLS_FIRST,
  sourceId: 123,
  transform: icebergTransform,
};
```

## Properties

- `direction`: [SortDirection](/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.SortDirection.html) (required) — The sort direction.

- `nullOrder`: [NullOrder](/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.NullOrder.html) (required) — The null ordering.

- `sourceId`: number (required) — The source field ID from the schema.

- `transform`: [IcebergTransform](/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.IcebergTransform.html) (required) — The sort transform function.

  Use `IcebergTransform` static properties for common transforms (e.g., `IcebergTransform.IDENTITY`)
  or methods for parameterized transforms (e.g., `IcebergTransform.bucket(16)`).
