# Sorting

This sorting option is an alternative to default sorting. It allows the user to sort according to any one column and direction (ascending or descending).

You can either use an existing column or drag a new column into the sort field to apply sort order to it.

To change the sorting:

* Go to advanced settings > `Sorting`.
* Enable the option.
* Pick the `sort by field` and `sort order`.
* Hit `Apply` to save.

To revert sorting to default, there are three ways:

* Click on `RESET`, then hit `Apply`.
* Disable the Sorting option.
* Sort by `Measure` in `Decending` order.

<figure><img src="/files/2BWokSMqrjkwnxbA1nAM" alt="" width="237"><figcaption></figcaption></figure>

{% hint style="success" %} <mark style="color:green;">KEY POINTS TO REMEMBER</mark>

* <mark style="color:green;">By default, sorting is by measure (descending order).</mark>
* <mark style="color:green;">If the custom column value is the same for all the categories in a layer, then the sorting will automatically be in default order.</mark>
  {% 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.powerviz.ai/powerviz/activity-gauge/advance-settings-introduction/sorting.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.
