# Sorting

The KendoReact Gantt enables you to sort single and multiple data-bound columns.

## Getting Started

To enable sorting:

1. Set the [`sortable`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops#sortable) option of the Gantt.
2. Utilize the [`sort`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops#sort) option to apply the sorting styles and buttons to the affected columns.
3. Set the [`field`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttcolumnprops#field) option of the Gantt column.
4. When [`sortable`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops#sortable) is configured and the user tries to sort a column, the [`onSortChange`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops#onsortchange) event is emitted. Handle the `onSortChange` event where you have the option to sort the data programmatically, to make a request to the server for server sorting, or to use the [`orderBy`](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops) function which automatically processes the data.

The following example demonstrates the minimum required configuration for sorting the Gantt records.

[Demo Source](https://demos.telerik.com/kendo-react-ui/gantt/sorting/func/source.txt)

## Suggested Links

* [React Gantt](https://www.telerik.com/kendo-react-ui-develop/components/gantt)
* [API Reference of the KendoReact Gantt](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/gantt)
* [API Reference of the KendoReact GanttProps](https://www.telerik.com/kendo-react-ui-develop/components/gantt/api/ganttprops)
