src/Repository/Doctrine/Repository.php
private function applyOrderByToQueryBuilder(QueryBuilder $queryBuilder, array $orderBy, $alias) {
        $queryBuilder->orderBy($alias . '.' . $orderBy[0], $orderBy[1]);
        return $queryBuilder;
    }
private function applyOrderByToQueryBuilder(QueryBuilder $queryBuilder, array $orderBy, $alias) {
        $queryBuilder->orderBy($alias . '.' . $orderBy[0], $orderBy[1]);
        return $queryBuilder;
    }
Applies the order by request to the query builder.

@param \Doctrine\ORM\QueryBuilder $queryBuilder
@param array                      $orderBy
@param string                     $alias
@return \Doctrine\ORM\QueryBuilder