I have a list view with custom sorter (set by ListCollectionView.CustomSort property), however I would like to insert new items at the top of list view. How can I suppress CustomSort?
I have an idea to tune my sort logic, so newly added item will be the first one, however this solution stinks a little bit.
Why suppress
CustomSort? Adapt it for your needs:You could give all new items an extreme value for the property used in
IComparerobject for sorting, e.G.int.MaxValueorstring.Empty.Or create an additional property IsNew and include it into comparing process.