Sorting a ListView or TreeView by number and text
Posted on 2004-09-14
I've for a listview and a treeview control on a form that I want to sort by number and text. For example, it should sort this way: 1, 2, 3, 9, 10, 11, 99, 100, 101, Alpha, Beta, etc... instead of 1, 10, 100, 101, 11, 2, 3, 9, Alpha, Beta, etc. How can I solve this problem in both controls?
Also, I'd like to be able to sort the TreeView by group/detail (the way that windows sorts folders). How can I implement this?
This is something I'd like to get answered quickly, so 500 points. Thanks!