CollectionView Sorting

The CollectionView has a sortDescriptions property that controls the sorting behavior of items in the collection. The sample below demonstrates some simple sorting scenarios and updates the sortDescriptions property with SortDescription objects to apply the sort.