SelectQuery.SortBy(Table, String, ListSortDirection) Method

Sorts a data table by a specified column in a required direction.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public Sorting SortBy(
    Table table,
    string columnName,
    ListSortDirection direction
)
Public Function SortBy(
    table As Table,
    columnName As String,
    direction As ListSortDirection
) As Sorting

Parameters

Name Type Description
table Table

A Table object.

columnName String

A String value, specifying the column name.

direction ListSortDirection

A ListSortDirection enumeration value.

Returns

Type Description
Sorting

A Sorting object.

See Also