Skip to content

Commit 874e719

Browse files
changed note under clear sorting
1 parent 26c55af commit 874e719

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MAUI/TreeView/sorting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ documentation: ug
1111

1212
The `SfTreeView` control provides built-in support for sorting data using the `SortDescriptors` property. Items can be sorted in either ascending or descending order. Custom sorting logic is also supported to sort the items.
1313

14-
N> When the new collection is updated to the `ItemsSource`, the `SortDescriptors` should be cleared and reinitialized manually based on the requirements for sorting.
15-
1614
## Programmatic sorting
1715

1816
Sort items by creating a `SortDescriptor` with the property name and sort direction, and then adding it to the `SortDescriptors` collection.
@@ -114,4 +112,6 @@ When the `SortDescriptors` collection is cleared, the TreeView control restores
114112
{% highlight c# %}
115113
treeView.SortDescriptors.Clear();
116114
{% endhighlight %}
117-
{% endtabs %}
115+
{% endtabs %}
116+
117+
N> When the new collection is updated to the `ItemsSource`, the `SortDescriptors` should be cleared and reinitialized manually based on the requirements for sorting.

0 commit comments

Comments
 (0)