# Sort
> Supported in: Batch, Faster
Transforms input dataset either by selecting columns or applying functions to columns.
**Transform categories**: Other
## Declared arguments
* **Dataset:** Dataset to sort.
*Table*
* **Sort specification:** Specification for how to sort the dataset.
*List\, Enum\>>*
## Examples
### Example 1: Base case
**Argument values:**
* **Dataset:** ri.foundry.main.dataset.a
* **Sort specification:** \[(`b`, `DESCENDING`)]
**Input:**
| a | b |
| ----- | ----- |
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
**Output:**
| a | b |
| ----- | ----- |
| 5 | 6 |
| 3 | 4 |
| 1 | 2 |
***
### Example 2: Base case
**Description:** Sorts by the absolute value of a column.
**Argument values:**
* **Dataset:** ri.foundry.main.dataset.a
* **Sort specification:** \[(
abs(
 expression: `b`,
), `DESCENDING`)]
**Input:**
| a | b |
| ----- | ----- |
| 3 | 4 |
| 5 | -2 |
| 1 | -6 |
**Output:**
| a | b |
| ----- | ----- |
| 1 | -6 |
| 3 | 4 |
| 5 | -2 |
***