SelectQueryFluentBuilder.SortByExpression(String, AggregationType, ListSortDirection) Method
Sorts the result set by a specified expression and aggregate function in a required direction.
Namespace: DevExpress.DataAccess.Sql
Assembly: DevExpress.DataAccess.v26.1.dll
NuGet Package: DevExpress.DataAccess
Declaration
public SelectQueryFluentBuilder SortByExpression(
string expression,
AggregationType aggregationType,
ListSortDirection direction
)
Parameters
| Name | Type | Description |
|---|---|---|
| expression | String | A String value, specifying the sorting expression. |
| aggregationType | AggregationType | An AggregationType enumeration value. |
| direction | ListSortDirection | A ListSortDirection enumeration value. |
Returns
| Type | Description |
|---|---|
| SelectQueryFluentBuilder | A SelectQueryFluentBuilder object. |
See Also