Property SortDescriptions
SortDescriptions
Collection of Sort criteria to sort items in this view over the SourceCollection.
SortDescriptionCollection SortDescriptions { get; }
Property Value
Remarks
Simpler implementations do not support sorting and will return an empty and immutable / read-only SortDescription collection. Attempting to modify such a collection will cause NotSupportedException. Use CanSort property on CollectionView to test if sorting is supported before modifying the returned collection.
One or more sort criteria in form of SortDescription can be added, each specifying a property and direction to sort by.