Skip to main content

SelectQuery.SortBy(Table, String, AggregationType) Method

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

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.1.dll

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

Declaration

public Sorting SortBy(
    Table table,
    string columnName,
    AggregationType aggregate
)

Parameters

Name Type Description
table Table

A Table object.

columnName String

A String value, specifying the column name.

aggregate AggregationType

An AggregationType enumeration value.

Returns

Type Description
Sorting

A Sorting object.

See Also