# Sorting

The PivotGrid supports sorting both in the OLAP and flat data-binding scenarios. To enable the sortable functionality, use the [`Sortable()`](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/pivotgridbuilder#sortable) method.

The PivotGrid supports sorting by the caption name of the members. The structure of the `sort` descriptor is similar to [the `sort` option of the `kendo.data.DataSource`](https://www.telerik.com/aspnet-core-ui/documentation/api/datasource) and contains the following options:

* `field`—The name of the dimension, for example, `[Date].[Calendar]`.
* `dir`—The direction of the sorting.

All inner members of the sorted dimension will be sorted with the same sort dimension.

To sort the PivotGrid rows and columns, click on the fields in the headers, the field menu or use the PivotGrid Configurator.

## See Also

* [Basic Usage of the PivotGrid HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/pivotgrid/index)

* [Basic Usage of the PivotGrid TagHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/pivotgrid/tag-helper)

* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/pivotgrid)
