# Sorting the Grid Multi-Check Filter Items

## Environment

<table>
 <tr>
  <td>Product Version</td>
  <td>2025 Q1</td>
 </tr>
 <tr>
  <td>Product</td>
  <td>Telerik UI for ASP.NET MVC Grid</td>
 </tr>
</table>

## Description

How can I sort the multi-check items in the column filter menu of the Telerik UI for ASP.NET MVC Grid?

## Solution

1. Specify a [DataSource](https://docs.telerik.com/aspnet-mvc/api/kendo.mvc.ui.fluent/gridboundcolumnfilterablebuilder#datasourcesystemaction) in the `Filterable` configuration of the Grid column.
2. Configure the sort option of the DataSource and set the desired order.

```Razor HtmlHelper
  columns.Bound(p => p.Details).Filterable(ftb =>
  {
    ftb.Multi(true);
    ftb.Search(true);
    ftb.CheckAll(true);
    ftb.DataSource(dataSource => dataSource
      .Custom()
      .Transport(t => t.Read("ReadFilterMenuItems", "Grid"))
      .Sort(sort => {
          sort.Add("Details").Descending();
      })
    );
  });
```

```C# GridController
  public ActionResult ReadFilterMenuItems()
  {
    var result = gridDataCollection.GroupBy(p => p.Details).Select(grp => grp.FirstOrDefault());
    return Json(result);
  }

```

## More ASP.NET MVC Grid Resources

* [ASP.NET MVC Grid Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/data-management/grid/overview)

* [ASP.NET MVC Grid Demos](https://demos.telerik.com/aspnet-mvc/grid/index)

* [ASP.NET MVC Grid Multi Checkbox Filter (Demo)](https://demos.telerik.com/aspnet-mvc/grid/filter-multi-checkboxes)

* [ASP.NET MVC Grid Product Page](https://www.telerik.com/aspnet-mvc/grid)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/grid)

* [Server-Side API Reference of the Grid for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/grid)

* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2024-backwards-compatibility)

* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
