applyOrder
Description
applyOrder
is a method that applies order to a query.
Signature
applyOrder(
orderBy: OrderParam<Entity>,
orderOptions?: ApplyOrderOptions
): SelectQueryBuilder<Entity>
Arguments
- orderBy: OrderParam<Entity>: The order to apply to the query.
- orderOptions?: ApplyOrderOptions: Additional options to apply to the order filter.
Usage
query.applyOrder({ field: 'name', direction: 'asc', nulls: 'last' }, { useDoubleQuotes: true })