ListViewGroup not sorting correctly
- by Andrew
I'm using a ListView control in a C# WinForms application. Items in the list are added to a ListViewGroup (in this case, grouping by country). The one thing that isn't working as expected is that the column sorting appears to be strange.
I've hooked into the ListViewItemSorter property of the ListView and everything sorts perfectly except when the country column is sorted in descending order (that is, Z-A). Regardless of how the list sort occurs the groups show in ascending order.
Can anyone give me a nudge in the right direction?
EDIT: FWIW, .NET 3.5 on Vista.