

# SearchAllRelatedItemsSort
<a name="API_connect-cases_SearchAllRelatedItemsSort"></a>

The order in which all returned related items should be sorted.

## Contents
<a name="API_connect-cases_SearchAllRelatedItemsSort_Contents"></a>

 ** sortOrder **   <a name="connect-Type-connect-cases_SearchAllRelatedItemsSort-sortOrder"></a>
Whether related items should be sorted by association time or case ID.   
Type: String  
Valid Values: `Asc | Desc`   
Required: Yes

 ** sortProperty **   <a name="connect-Type-connect-cases_SearchAllRelatedItemsSort-sortProperty"></a>
Whether related items should be sorted in ascending or descending order.   
Type: String  
Valid Values: `AssociationTime | CaseId`   
Required: Yes

## See Also
<a name="API_connect-cases_SearchAllRelatedItemsSort_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/connectcases-2022-10-03/SearchAllRelatedItemsSort) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/connectcases-2022-10-03/SearchAllRelatedItemsSort) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/connectcases-2022-10-03/SearchAllRelatedItemsSort) 