> For the complete documentation index, see [llms.txt](https://docs.powerviz.ai/powerviz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerviz.ai/powerviz/heatmap/advanced-settings-introduction/sorting.md).

# Sorting

The sorting feature in Powerviz heatmaps allows you to organize data cells based on specific criteria, such as value magnitude or categories. This helps in easily identifying patterns and trends by reordering the heatmap to highlight key information more effectively.

### Rows

#### Sort By

* Choose to sort by either Category Field or Measure Field.

#### Sort Order

* Select Ascending or Descending order.
* If multiple fields are added, sorting can be applied based on each field sequentially.

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

### Columns

#### Sort By

* Choose to sort by either Category Field or Measure Field.

#### Sort Order

* Select Ascending or Descending order.
* If multiple fields are added, sorting can be applied based on each field sequentially.

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

\ <br>
