

# OrderByElement


A field and direction for ordered output.

## Contents


 ** fieldName **   <a name="DiscServ-Type-OrderByElement-fieldName"></a>
The field on which to order.  
Type: String  
Length Constraints: Maximum length of 1000.  
Pattern: `[\s\S]*\S[\s\S]*`   
Required: Yes

 ** sortOrder **   <a name="DiscServ-Type-OrderByElement-sortOrder"></a>
Ordering direction.  
Type: String  
Valid Values: `ASC | DESC`   
Required: No

## See Also


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/discovery-2015-11-01/OrderByElement) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/discovery-2015-11-01/OrderByElement) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/discovery-2015-11-01/OrderByElement) 