--- title: "Sort Datasource Object" slug: "sort-datasource-object" updated: 2025-10-07T09:58:29Z published: 2025-10-07T10:33:41Z canonical: "help.mail-and-deploy.com/sort-datasource-object" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mail-and-deploy.com/llms.txt > Use this file to discover all available pages before exploring further. # Sort Datasource Object ### General The Sort Datasource Object action sorts the table or pivot table with the defined Sort Specifications. ### Properties | Name | Description | | --- | --- | | Datasource Object | The Datasource Object to be filtered. | | Sort Specifications | CreateList(, <"alpha/num">, <"alpha/num">) | In order to sort by the first measure in a pivot table, use the following: CreateList(-1, "num", "alpha/num") ### Example To sort a table with 5 columns, 3 dimensions and 2 measures and the 1st, 2nd and 3rd should be sorted alphanumeric, ascending the Sort Specifications are defined as follow: CreateList(1, "alpha", "asc", 2, "alpha", "asc", 3, "alpha", "asc") To sort a table with 5 columns, 3 dimensions and 2 measures and the 1st and 2nd columns should be sorted alphanumeric, ascending and the 4rd column should be sorted numeric descending the Sort Specifications are defined as follow: CreateList(1, "alpha", "asc", 2, "alpha", "asc", 4, "num", "desc") Available in Version 3.5.20 and higher.