> 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 %}
