# Sorting

In the xViz Gantt Chart, sorting is now easier with the two new data fields that allow you to sort the bars in ascending or descending order.

<figure><img src="/files/ijm9g2lwfPMvtF9S4vWQ" alt=""><figcaption><p><em>GIF 1: Sorting in xViz Gantt Chart</em></p></figcaption></figure>

### Steps to Configure Sort in Gantt Chart

1. Populate the data to the “Sort Ascending” or “Sort Descending” data field to Sort the data.

<img src="/files/VoiDoMrJGD6Ckd4T84kR" alt="Image 1: Populate the “Sort” data field" width="175">

The final result, which sorts the tasks in Ascending order based on the Start Date, is displayed in the image below:

![Image 2: Sort with xViz Gantt Chart](/files/hXGmiUEAkbzqUNbZhYFz)

{% hint style="info" %}
Guide for Power BI Sort by Column: [Sort one column by another column in Power BI](https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-desktop)
{% 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.xviz.com/project-management/other-features/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.
