Tree Grid / Sorting / Custom Sorting

Blazor TreeGrid Example - Custom Sorting

Loading Syncfusion Blazor Server Demos…

This sample demonstrates applying custom sorting logic. Columns can be ordered based on a predefined sequence rather than default alphabetical or numeric sorting.

Enable sorting by setting AllowSorting to true. Click column headers to sort.

In this demo, custom sort logic is applied via SortComparer:

  • Priority: custom sequence – Low, Normal, High, Critical
  • RICE Score: numeric sorting, even though values are stored as strings

Learn more in the custom sorting documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE