Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
Actually it will already do this intrinsically for a Date or Date/Time value. As Ben mentioned above, we have a ListViewItemSorter class that you can implement as the ListViewSorter on a ListView. This class, which you can look at since you get the source, is an IComparer implementation which sorts on character data while testing for date values and sorting correctly there. If you need more functionality, it is very easy to write a comparer class as there is only a single method that you have to write that compares two values to see which one should rank higher. You can also look at the ListViewItemSorter class to see what we did and you can expand on that if you have the need. This would be your fastest solution.
|