--- title: "Using the Sort Array Step" slug: "using-the-sort-array-step" updated: 2021-03-12T15:05:29Z published: 2021-03-12T15:07:13Z canonical: "documentation.decisions.com/using-the-sort-array-step" --- > ## 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. # Using the Sort Array Step Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.8.0 | | **Root Folder** | Example Lab - Sort Array with Dates | | **Modules** | None | | **Dependencies** | None | This Example Lab shows how a user can sort any given dates using the **Sort Array** step. --- ## Explanation The Flow starts with a **Create Data** step. This will give test dates that can properly display the **Sort Array** step. Next, the Sort Array step builds an array of these dates, then sorts the dates in a descending order. One thing to note about creating arrays in certain Decisions steps, a user can choose "Build Array" on the inputs and add individual members of an array by selecting "Select from Flow." Reference Articles ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1599068068617.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.8.0 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[SortArraywithDates].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BSortArraywithDates%5D.zip) ---