Skip to main content

SelectQuery.SortByExpression(String, AggregationType, ListSortDirection) Method

Sorts a data table by a specified expression and aggregate function in a required direction.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v23.2.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

public Sorting SortByExpression(
    string expression,
    AggregationType aggregationType,
    ListSortDirection direction
)

Parameters

Name Type Description
expression String

A String value, specifying the sorting expression.

aggregationType AggregationType

An AggregationType enumeration value.

direction ListSortDirection

A ListSortDirection enumeration value.

Returns

Type Description
Sorting

A Sorting object.

See Also