diff --git a/src/Core/Framework/DataAbstractionLayer/Dbal/EntityAggregator.php b/src/Core/Framework/DataAbstractionLayer/Dbal/EntityAggregator.php
index <HASH>..<HASH> 100644
--- a/src/Core/Framework/DataAbstractionLayer/Dbal/EntityAggregator.php
+++ b/src/Core/Framework/DataAbstractionLayer/Dbal/EntityAggregator.php
@@ -167,6 +167,8 @@ class EntityAggregator implements EntityAggregatorInterface
         $query = new QueryBuilder($this->connection);
 
         $query = $this->buildQueryByCriteria($query, $definition, $clone, $context);
+        $query->resetQueryPart('orderBy');
+
         $this->addIdCondition($criteria, $definition, $query);
 
         $table = $definition->getEntityName();
NEXT-<I> - Reset _score sorting when fetching aggregations