# FieldSortOptionsProperty

The field sort options in a chart configuration.

- 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 fieldSortOptionsProperty: quicksight.CfnAnalysis.FieldSortOptionsProperty = {
  columnSort: {
    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',
      },
    },
  },
  fieldSort: {
    direction: 'direction',
    fieldId: 'fieldId',
  },
};
```

## Properties

- `columnSort`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.ColumnSortProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.ColumnSortProperty.html) — The sort configuration for a column that is not used in a field well.

- `fieldSort`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.FieldSortProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.FieldSortProperty.html) — The sort configuration for a field in a field well.
