# Sort Keys

## AscendingSort

Specifies a map element to be sorted in ascending order in a loop.

This function can only be used in the Sort Keys argument of a loop expression.

### Related examples

* [Sorting loop elements](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/8.0/sorting-loop-elements)

### Arguments

| Arguments | Definitions |
| --- | --- |
| Variable arguments | Add the map elements that you want to use to sort the<br>loop. |

## DescendingSort

Specifies a map element to be sorted in descending order in a loop.

This function can only be used in the Sort Keys argument of a loop expression.

### Arguments

| Arguments | Definitions |
| --- | --- |
| Variable arguments | Add the map elements that you want to use to sort the<br>loop. |