# ColumnSortProperty

The sort configuration for a column that is not used in a field well.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const columnSortProperty: quicksight.CfnAnalysis.ColumnSortProperty = {
  direction: 'direction',
  sortBy: {
    columnName: 'columnName',

    // the properties below are optional
    dataSetIdentifier: 'dataSetIdentifier',
    topicIdentifier: 'topicIdentifier',
  },

  // the properties below are optional
  aggregationFunction: {
    attributeAggregationFunction: {
      simpleAttributeAggregation: 'simpleAttributeAggregation',
      valueForMultipleValues: 'valueForMultipleValues',
    },
    categoricalAggregationFunction: 'categoricalAggregationFunction',
    dateAggregationFunction: 'dateAggregationFunction',
    numericalAggregationFunction: {
      percentileAggregation: {
        percentileValue: 123,
      },
      simpleNumericalAggregation: 'simpleNumericalAggregation',
    },
  },
};
```

## Properties

- `aggregationFunction`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.AggregationFunctionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.AggregationFunctionProperty.html) — The aggregation function that is defined in the column sort.

- `direction`: string (required) — The sort direction.

- `sortBy`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.ColumnIdentifierProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.ColumnIdentifierProperty.html) (required)
