# Sorting controller

The sorting controller offers a way to organize the data by alphabetical or numeral order.

### Features and functionality

{% hint style="info" %}
Sorting controllers are available for both dimensions and metrics, although some restrictions may apply.
{% endhint %}

#### Versatility

The sorting controller works with a wide range of data types, from text to numbers.

#### Intelligent sorting

The controller automatically recognizes the data type in each column, ensuring appropriate sorting (alphabetical for text, numerical for figures).

#### Consistency

The sorting controller maintains a uniform sorting method across different tables for a cohesive user experience.

***

### Using the controller

To activate the sorting controller, click on the 'sort' (up/down arrows) icon of the column you wish to sort.

<div align="left"><figure><img src="/files/LdGY8ivjNwVT1CMwx5Cn" alt=""><figcaption></figcaption></figure></div>

#### Ascending order

To organize data in ascending order (A-Z or lowest-to-highest), click the sorting controller once.

<div align="left"><figure><img src="/files/cAbO5abmuOwoJXodJlbc" alt=""><figcaption></figcaption></figure></div>

#### Descending order

To organize data in descending order (Z-A or highest-to-lowest), click again on the controller in the ascending order state.

<div align="left"><figure><img src="/files/7arpfGEE0GDH4bFgAuLH" alt=""><figcaption></figcaption></figure></div>

#### Reset order

To reset sorting, click on the controller again while it is in the descending order state.

{% hint style="info" %}
Only one column can be sorted at a time. Clicking on a different column from the one currently sorted will initiate a new sorting operation.
{% endhint %}


---

# 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.advertisingbeast.com/managing-advertising-accounts/modules/cross-module-components/data-tables/controllers-bar/sorting-controller.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.
