Back to Devexpress

SortDescriptionBase.SortOrder Property

maui-devexpress-dot-maui-dot-collectionview-dot-sortdescriptionbase-9c09762c.md

latest1.7 KB
Original Source

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

csharp
public DataSortOrder SortOrder { get; set; }

Property Value

TypeDefaultDescription
DataSortOrderNone

A value that specifies a sort order.

|

Available values:

NameDescription
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:

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

See Also

Filter, Sort, and Group Data in Collection View for .NET MAUI

SortDescriptionBase Class

SortDescriptionBase Members

DevExpress.Maui.CollectionView Namespace