

# BotVersionSortBy
<a name="API_BotVersionSortBy"></a>

Specifies attributes for sorting a list of bot versions.

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

 ** attribute **   <a name="lexv2-Type-BotVersionSortBy-attribute"></a>
The attribute to use to sort the list of versions.  
Type: String  
Valid Values: `BotVersion`   
Required: Yes

 ** order **   <a name="lexv2-Type-BotVersionSortBy-order"></a>
The order to sort the list. You can specify ascending or descending order.  
Type: String  
Valid Values: `Ascending | Descending`   
Required: Yes

## See Also
<a name="API_BotVersionSortBy_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/models.lex.v2-2020-08-07/BotVersionSortBy) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/models.lex.v2-2020-08-07/BotVersionSortBy) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/models.lex.v2-2020-08-07/BotVersionSortBy) 