Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SortDescriptionBase.SortOrder Property

Gets or sets whether items in the list view are sorted in descending or ascending order. This is a bindable property.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public DataSortOrder SortOrder { get; set; }

#Property Value

Type Default Description
DataSortOrder None

A value that specifies a sort order.

Available values:

Name Description
None

Data is not sorted.

Ascending

Sorts data in ascending order.

Descending

Sorts data in descending order.

#Example

The following example sorts collection view items in descending order by the Name data field:

DevExpress MAUI Collection View - Sorted collection view items

<dxcv:DXCollectionView ...>
    <dxcv:DXCollectionView.SortDescriptions>
        <dxcv:SortDescription FieldName="Name" SortOrder="Descending"/>
    </dxcv:DXCollectionView.SortDescriptions>
</dxcv:DXCollectionView>
See Also