> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-server/005-function/list/list.sort.md).

# List.sort

## Description

Sorts the elements in a list in ascending or descending order.

## Input / Parameter

| Name       | Description                                                                            | Input Type | Default | Options     | Required |
| ---------- | -------------------------------------------------------------------------------------- | ---------- | ------- | ----------- | -------- |
| data       | The list of elements to be sorted.                                                     | List       | -       | -           | Yes      |
| descending | Sorts the elements in ascending order if 'false', sorts in descending order if 'true'. | Boolean    | false   | true, false | No       |

## Output

| Description              | Output Type |
| ------------------------ | ----------- |
| Returns the sorted list. | List        |

## Callback

N/A

## Video

Coming Soon.

## Example

Coming Soon.

### Steps

Coming Soon.

### Result

Coming Soon.

## Links
