# 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="https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FgBccH20rQ5LgdxESkLtW%2Fsorting.gif?alt=media&#x26;token=0453ddde-6777-4a98-a193-78346560410d" 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.

![Image 1: Populate the “Sort” data field](https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2FhtO1iMROq8zj9ZjdIPRY%2F1.png?alt=media)

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](https://382510089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIuuIZWiXEx25eV75hmmJ%2Fuploads%2F1YrvHY8KB6GaT6mXKc7m%2F2.png?alt=media)

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