# DataPathSortProperty

Allows data paths to be sorted by a specific data value.

- 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 dataPathSortProperty: quicksight.CfnTemplate.DataPathSortProperty = {
  direction: 'direction',
  sortPaths: [{
    dataPathType: {
      pivotTableDataPathType: 'pivotTableDataPathType',
    },
    fieldId: 'fieldId',
    fieldValue: 'fieldValue',
  }],
};
```

## Properties

- `direction`: string (required) — Determines the sort direction.

- `sortPaths`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.DataPathValueProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.DataPathValueProperty.html)[] (required) — The list of data paths that need to be sorted.
