Skip to main content

SelectQuery.SortBy(Table, String, AggregationType, ListSortDirection) Method

Sorts a data table by a specified column in a required direction by applying an aggregate function.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v23.1.dll

NuGet Package: DevExpress.DataAccess


public Sorting SortBy(
    Table table,
    string columnName,
    AggregationType aggregate,
    ListSortDirection direction


Name Type Description
table Table

A Table object.

columnName String

A String value, specifying the column name.

aggregate AggregationType

An AggregationType enumeration value.

direction ListSortDirection

A ListSortDirection enumeration value.


Type Description

A Sorting object.

See Also