SelectQueryFluentBuilder.SortBy(String, AggregationType, ListSortDirection) Method

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

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v21.2.dll

Declaration

public SelectQueryFluentBuilder SortBy(
    string columnName,
    AggregationType aggregate,
    ListSortDirection direction
)

Parameters

Name Type Description
columnName String

A String value, specifying the column name.

aggregate AggregationType

An AggregationType enumeration value.

direction ListSortDirection

A ListSortDirection enumeration value.

Returns

Type Description
SelectQueryFluentBuilder

A SelectQueryFluentBuilder object.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SortBy(String, AggregationType, ListSortDirection) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also