Skip to main content

SelectQueryFluentBuilder.SortByExpression(String, ListSortDirection) Method

Sorts the result set by a specified expression in a required direction.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v24.2.dll

Declaration

public SelectQueryFluentBuilder 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
SelectQueryFluentBuilder

A SelectQueryFluentBuilder object.

See Also