

# OrderBy
<a name="API_CostOptimizationHub_OrderBy"></a>

Defines how rows will be sorted in the response.

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

 ** dimension **   <a name="awscostmanagement-Type-CostOptimizationHub_OrderBy-dimension"></a>
Sorts by dimension values.  
Type: String  
Required: No

 ** order **   <a name="awscostmanagement-Type-CostOptimizationHub_OrderBy-order"></a>
The order that's used to sort the data.  
Type: String  
Valid Values: `Asc | Desc`   
Required: No

## See Also
<a name="API_CostOptimizationHub_OrderBy_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/cost-optimization-hub-2022-07-26/OrderBy) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cost-optimization-hub-2022-07-26/OrderBy) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cost-optimization-hub-2022-07-26/OrderBy) 