DomainObjects Class Library

Criteria.AddOrderBy Method (Field)

Specifies a field on which to sort the rows selected by a query. Sorts the selected rows in ascending order.

public Criteria AddOrderBy(
   Field fieldToSortOn
);

Parameters

fieldToSortOn
A field from the object model to sort on. It can be a field in a persistable object, a constant or a function.

Return Value

The current Criteria to which an order by clause has been added.

See Also

Criteria Class | DomainObjects.Facade.Command Namespace | Criteria.AddOrderBy Overload List