SelectQueryFluentBuilder.SortBy(String, ListSortDirection) Method

Sorts the result set by a specified column in a required direction. This column is obtained from the last table added by the SelectQueryFluentBuilder.AddTable or SelectQueryFluentBuilder.Join method.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll


public SelectQueryFluentBuilder SortBy(
    string columnName,
    ListSortDirection direction
Public Function SortBy(
    columnName As String,
    direction As ListSortDirection
) As SelectQueryFluentBuilder


Name Type Description
columnName String

A String value, specifying the column name.

direction ListSortDirection

A ListSortDirection enumeration value.


Type Description

A SelectQueryFluentBuilder object.

See Also