Doctrine\DBAL\Query\QueryBuilder::addOrderBy
Adds an ordering to the query results.
Signature
public function addOrderBy(string
$sort,
[string
$order = null] )
Parameters
$sort
— string- The ordering expression.
$order
— string- The ordering direction.
Returns
- QueryBuilder
- This QueryBuilder instance.