This article “Write a Sortable ObservableCollection for WPF” appears to be all that’s needed (for me) to handle any need to sort ObservableCollection. However, there might be scenarios that need a more complex design. Or, on the other extreme, there may be a way to prevent this need for a sort by design. Am I on the right track here or is this question moot?
This article Write a Sortable ObservableCollection for WPF appears to be all that’s needed
Share
This depends on whether you are trying to persist the user-selected ordering, like if the user is prioritizing items.
If the sorting is for display purposes only as is more common,
CollectionViewandCollectionViewSourceare well-adapted to sorting and filtering collections in various ways in the WPF UI.