--- title: "Sort Array" slug: "sort-array" tags: ["sort", "array", "Lists"] updated: 2023-01-05T15:06:29Z published: 2023-01-05T15:06:29Z canonical: "documentation.decisions.com/sort-array" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Sort Array | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | Data > List | The Sort Array step takes in a list of a composite type and returns that same list, sorted by a field, either in ascending or descending order. This sorting can either be a String sort if the field is a string, a numerical sort if the field is a number, or a Date sort if the field is a Date. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Input | The desired list to sort | List of [Data Type] | #### Sort Parameters | Property | Description | Data Type | | --- | --- | --- | | Type | Defines the data type of the list | --- | | Field | Defines what field to sort the list by | --- | | Order | Defines how the array list is sorted | --- | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Sorted Array | List of array items sorted by the defined order | List of [Data Type] | --- ## Example Inputs and Outputs | Input | Output | | --- | --- | | 43,22,66,77,3 | 3,22,43,66,77 | | Null | Null | | Empty | Null | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1672930668973.png) ## Related - [Sort Strings](/sort-strings.md) - [Collection Sort Step](/collection-sort-step.md)