# 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>


---

# 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/heatmap/advanced-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.
