When sorting is applied to a list view, the data is sorted in ascending or descending order.
The IDataCollection interface supports ascending and descending sorting for data controls, such as grids. It implements the SortAsync method to allow you to call the sorting operation in the collection view without having to cast to the specific interface. The SortAsync method sorts the collection view according to the specified sort parameters, descriptions, or path and direction.
The following code implements sorting in the ListView control using the SortAsync method.