

# SortCriterion
<a name="API_SortCriterion"></a>

Specifies a field to sort by and a sort order.

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

 ** FieldName **   <a name="Glue-Type-SortCriterion-FieldName"></a>
The name of the field on which to sort.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Required: No

 ** Sort **   <a name="Glue-Type-SortCriterion-Sort"></a>
An ascending or descending sort.  
Type: String  
Valid Values: `ASC | DESC`   
Required: No

## See Also
<a name="API_SortCriterion_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/glue-2017-03-31/SortCriterion) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/glue-2017-03-31/SortCriterion) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/glue-2017-03-31/SortCriterion) 