

# SortDefinition
<a name="API_SortDefinition"></a>

The details for how to sort the data.

## Contents
<a name="API_SortDefinition_Contents"></a>

 ** Key **   <a name="awscostmanagement-Type-SortDefinition-Key"></a>
The key that's used to sort the data.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `[\S\s]*`   
Required: Yes

 ** SortOrder **   <a name="awscostmanagement-Type-SortDefinition-SortOrder"></a>
The order that's used to sort the data.  
Type: String  
Valid Values: `ASCENDING | DESCENDING`   
Required: No

## See Also
<a name="API_SortDefinition_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ce-2017-10-25/SortDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ce-2017-10-25/SortDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ce-2017-10-25/SortDefinition) 