This question is locked. New answers and comments are not allowed.
I am trying to find a way to have the TreeView sort the HierarchicalDataTemplate items. I can do this with a IValueConverter that changes the bound Items to a CollectionView with SortDescriptions however I need a custom sort. I want to sort strings Numerically
1A
2A
3A
10A
20A
Normal sorting organizes these as
1A
10A
2A
20A
3A
How can I get this custom sorting? I have an IComparer<string> that will provide the proper mechanism for the sorting but cant find where to plug it into.
1A
2A
3A
10A
20A
Normal sorting organizes these as
1A
10A
2A
20A
3A
How can I get this custom sorting? I have an IComparer<string> that will provide the proper mechanism for the sorting but cant find where to plug it into.