

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::QuickSight::Template DataPathSort
<a name="aws-properties-quicksight-template-datapathsort"></a>

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

## Syntax
<a name="aws-properties-quicksight-template-datapathsort-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-quicksight-template-datapathsort-syntax.json"></a>

```
{
  "[Direction](#cfn-quicksight-template-datapathsort-direction)" : String,
  "[SortPaths](#cfn-quicksight-template-datapathsort-sortpaths)" : [ DataPathValue, ... ]
}
```

### YAML
<a name="aws-properties-quicksight-template-datapathsort-syntax.yaml"></a>

```
  [Direction](#cfn-quicksight-template-datapathsort-direction): String
  [SortPaths](#cfn-quicksight-template-datapathsort-sortpaths): 
    - DataPathValue
```

## Properties
<a name="aws-properties-quicksight-template-datapathsort-properties"></a>

`Direction`  <a name="cfn-quicksight-template-datapathsort-direction"></a>
Determines the sort direction.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `ASC | DESC`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SortPaths`  <a name="cfn-quicksight-template-datapathsort-sortpaths"></a>
The list of data paths that need to be sorted.  
*Required*: Yes  
*Type*: Array of [DataPathValue](aws-properties-quicksight-template-datapathvalue.md)  
*Minimum*: `0`  
*Maximum*: `20`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)