Sorting ObservableCollection<T>
问题 I have Two separate observable Collection where T is a user defined class. These collections are binded to List View and Tree View. I want to show the items of the collections in sorted order. I don't seem to find any sort function on the List and Tree view. Elements in Collections can be removed/added on run time. What is the best way to achieve this? Thanks in advance. Cheers! 回答1: You can implement this behaviour yourself quite easily using the internal Move method by extending the