Skip to content

Commit b111b8b

Browse files
committed
998328: committed changes
1 parent b902456 commit b111b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blazor/treegrid/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ When the tree grid header is tapped on the touchscreen devices, the selected col
255255

256256
The Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor TreeGrid provides a way to customize the default sort action for a column by defining the [SortComparer](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.TreeGrid.SfTreeGrid-1.html#Syncfusion_Blazor_TreeGrid_SfTreeGrid_1_SortComparer) property of `TreeGridColumn`. The `SortComparer` data type uses the [IComparer](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.icomparer-1?view=net-7.0&viewFallbackFrom=net-5) interface, so the custom sort comparer class should be implemented in the interface `IComparer`.
257257

258-
In this TreeGrid example, custom sorting enhances project management by allowing the **"Priority"** column to be sorted based on a predefined hierarchy (Critical, High, Normal, Low) instead of alphabetical order, and the **"Story Points"** column to be sorted numerically so that string values are treated as numbers, producing the correct ascending sequence 3, 5, 30 rather than the alphabetical order "3", "30", "5". In descending order, the numeric order is reversed to 30, 5, 3, making larger story points appear at the top.
258+
In this TreeGrid example, custom sorting enhances project management by allowing the "Priority" column to be sorted based on a predefined hierarchy (Critical, High, Normal, Low) instead of alphabetical order, and the "Story Points" column to be sorted numerically so that string values are treated as numbers, producing the correct ascending sequence 3, 5, 30 rather than the alphabetical order "3", "30", "5". In descending order, the numeric order is reversed to 30, 5, 3, making larger story points appear at the top.
259259

260260
{% tabs %}
261261
{% highlight razor tabtitle="Index.razor" %}

0 commit comments

Comments
 (0)