diff --git a/src/Repository/ImageSliderRepository.php b/src/Repository/ImageSliderRepository.php index d8427f1..c9000dc 100644 --- a/src/Repository/ImageSliderRepository.php +++ b/src/Repository/ImageSliderRepository.php @@ -30,7 +30,7 @@ public function getHighestPosition(): int $qb = $this ->createQueryBuilder('s') ->select('s.position') - ->orderBy('s.position', 'ASC') + ->orderBy('s.position', 'DESC') ->setMaxResults(1) ->getQuery();