# 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="https://2952853741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL502qSSR9Gd1FbZtxvCe%2Fuploads%2FAsJd1NxCfO9wOjG1Xh5g%2Fimage.png?alt=media&#x26;token=4bd52cb0-f580-44ae-9093-4b42f7533a26" 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 %}
