Builds the aggregation sort part of the query.
\Drupal\field_sql_storage\Entity\QueryAggregate Returns the called object.
protected function addSortAggregate() {
if (!$this->count) {
foreach ($this->sortAggregate as $alias => $sort) {
$this->sqlQuery
->orderBy($this->sqlExpressions[$alias], $sort['direction']);
}
}
return $this;
}