diff --git a/packages/rekapager-doctrine-orm-adapter/src/QueryBuilderAdapter.php b/packages/rekapager-doctrine-orm-adapter/src/QueryBuilderAdapter.php index 9b746c1..be34ef7 100644 --- a/packages/rekapager-doctrine-orm-adapter/src/QueryBuilderAdapter.php +++ b/packages/rekapager-doctrine-orm-adapter/src/QueryBuilderAdapter.php @@ -278,6 +278,7 @@ private function getSortOrder(): array $exploded = explode(' ', $part); $field = $exploded[0]; $direction = $exploded[1] ?? 'ASC'; + $direction = strtoupper($direction); if (!\in_array($direction, ['ASC', 'DESC'], true)) { throw new \LogicException('Invalid direction');