TCriteria.OrderBy Method
Overloads
TCriteria.OrderBy(string, Boolean)
Adds an ordering clause to the query based on an entity property name.
Syntax
Unit: Aurelius.Criteria.Base
function TCriteria.OrderBy(const APropName: string; AAscending: Boolean = True): TCriteria; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | APropName | string | The name of the entity property to order by. |
| AAscending | Boolean | Optional: Default value is True If True, results are ordered ascending; if False, descending. Defaults to True. |
Returns
The current criteria instance to allow method chaining.
See also
TCriteria.OrderBy(TProjection, Boolean)
Adds an ordering clause to the query based on a projection expression.
Syntax
Unit: Aurelius.Criteria.Base
function TCriteria.OrderBy(AProjection: TProjection; AAscending: Boolean = True): TCriteria; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AProjection | TProjection | The projection expression to order by. | |
| AAscending | Boolean | Optional: Default value is True If True, results are ordered ascending; if False, descending. Defaults to True. |
Returns
The current criteria instance to allow method chaining.