

# Sort


A structure that defines the field name to sort by and a sort order.

## Contents


 ** FieldName **   <a name="connect-Type-Sort-FieldName"></a>
The name of the field on which to sort.  
Type: String  
Valid Values: `INITIATION_TIMESTAMP | SCHEDULED_TIMESTAMP | CONNECTED_TO_AGENT_TIMESTAMP | DISCONNECT_TIMESTAMP | INITIATION_METHOD | CHANNEL | EXPIRY_TIMESTAMP`   
Required: Yes

 ** Order **   <a name="connect-Type-Sort-Order"></a>
An ascending or descending sort.  
Type: String  
Valid Values: `ASCENDING | DESCENDING`   
Required: Yes

## 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/connect-2017-08-08/Sort) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/connect-2017-08-08/Sort) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/connect-2017-08-08/Sort) 