# SORT

#### Syntax <a href="#syntax.49" id="syntax.49"></a>

**SORT**(*range;* *sortColumn1;* *sortOrder1;* …; *sortColumnN;* *sortOrderN*)

* *range* - der Bereich, der sortiert werden soll - ***Wertetyp**: Bereich*
* *sortColumn1-N* - die Spalte, die zum Sortieren von *range* verwendet wird - ***Wertetyp**: Spaltenbereich*
* *sortOrder1-N* - die Sortierreihenfolge - ***Wertetyp**: Konstante*
  * <mark style="color:red;">up</mark> - *range* wird aufsteigend sortiert
  * <mark style="color:red;">down</mark> - *range* wird absteigend sortiert

#### Beispiel <a href="#example.4" id="example.4"></a>

In diesem Beispiel gibt die Funktion SORT den Inhalt von table1 zurück, aufsteigend sortiert nach den Werten in der zweiten Spalte:

<figure><img src="/files/HNdx6j5voqBfs41sAQeu" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/version-1.66-de/clearlines-funktionen/bereichs-funktionen/sort.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
