# Sort Function

The **Sort Function** offers you the possibility of sorting the display of your search results according to certain criteria and thus getting a better overview.

The Sort button below the search field can be used to open the sort menu:

<div align="left"><figure><img src="/files/oZsOd6VyrWuIlrArd23h" alt="" width="375"><figcaption></figcaption></figure></div>

All results are sorted in descending order from the newest to the earliest entries. In addition, you can prioritize different characteristics and select the direction of sorting (ascending or descending). On the left side of the menu list, you can see the search criteria, which you can activate by selecting one of the three priority levels (1st/2nd/3rd). For example, if priority 1 is set to [CensusID](/the-census-database-overview/censusids.md), the results will then be sorted according to Census IDs. Under **Direction** you can also select whether you want the sorting to be applied in ascending or descending order according to a certain criterion (**Ascending / Descending**). You can then choose which field determines the second and third priority in the overall sorting of your search results.

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

Depending on which object types are activated in the [Sources Menu](/navigating-and-searching/data-sets-and-sources.md), the list of criteria for the sort function changes. Therefore, pay attention to which selection you have made in the 'Sources' menu.


---

# 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.census.de/navigating-and-searching/sort-function.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.
