If you find that the default WPF sorting method is not what you planned, you can provide a custom default sorter:
ListCollectionView view = (ListCollectionView)CollectionViewSource.GetDefaultView(listView.ItemsSource); view.CustomSort = new DateValueSorter(); listView.Items.Refresh();
Where DateValueSorter is a class that implements the IComparer interface and sorts according to the date value and produces the order you are looking for.
Nicholas armstrong
source share