SelectQuery.SortByExpression(String, ListSortDirection) Method

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

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v21.1.dll

Declaration

public Sorting SortByExpression(
    string expression,
    ListSortDirection direction
)

Parameters

Name Type Description
expression String

A String value, specifying the sorting expression.

direction ListSortDirection

A ListSortDirection enumeration value.

Returns

Type Description
Sorting

A Sorting object.

See Also