> For the complete documentation index, see [llms.txt](https://docs.xviz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xviz.com/project-management/other-features/sorting.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.xviz.com/project-management/other-features/sorting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
