Loading src/HttpSort.php +2 −1 Original line number Diff line number Diff line Loading @@ -44,8 +44,9 @@ class HttpSort public function addToQuery(QueryBuilder $queryBuilder): QueryBuilder { $orderColumns = str_contains($this->field, '.') ? $this->field : $this->getColumn(); if (in_array($this->getHttpValue(), self::SORT_DIRECTIONS, true)) { $queryBuilder->orderBy($this->getColumn(), $this->getHttpValue()); $queryBuilder->orderBy($orderColumns, $this->getHttpValue()); } return $queryBuilder; Loading Loading
src/HttpSort.php +2 −1 Original line number Diff line number Diff line Loading @@ -44,8 +44,9 @@ class HttpSort public function addToQuery(QueryBuilder $queryBuilder): QueryBuilder { $orderColumns = str_contains($this->field, '.') ? $this->field : $this->getColumn(); if (in_array($this->getHttpValue(), self::SORT_DIRECTIONS, true)) { $queryBuilder->orderBy($this->getColumn(), $this->getHttpValue()); $queryBuilder->orderBy($orderColumns, $this->getHttpValue()); } return $queryBuilder; Loading