ListView Sorting Problem
What I need is a way to sort a listview based on dates. My first column is dates. What I need is the most current date at the top and so 01/01/2005 (MM/DD/YYYY) would be at the bottom.
Is there any flags I could use to have it sorted with this method? Or would I have to make my own sorting functions? If I have to make my own is there a simple method of changing a row's # (say current row #3 has to become row #4 so then row #3 can be populated with a new row of data)?
By the way, this is a ListView created with the LVS_REPORT style so it has multiple columns.
Have a look at ListView_SortItems. This allows you to provide a custom comparison function.