Since Sphinx returns document ID's in an ordered manner (if order is provided) and these ids then put to QueryBuilder which searches for entities using "IN" clause, the resulting order of documents retrieved from the database is random. And I guess this:
if ($this->orderBy) {
$this->queryBuilder->resetDQLPart('orderBy');
}
in applyQueryBuilder() doesn't allow to fix the order.
Since Sphinx returns document ID's in an ordered manner (if order is provided) and these ids then put to QueryBuilder which searches for entities using "IN" clause, the resulting order of documents retrieved from the database is random. And I guess this:
in
applyQueryBuilder()
doesn't allow to fix the order.