diff --git a/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php b/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php index e2452dced..38262f95e 100644 --- a/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/NotificationRepository.php @@ -116,6 +116,8 @@ final class NotificationRepository implements ObjectRepository $query = $query->setFirstResult($offset); } + $query->addOrderBy('n.date', 'DESC'); + return $query->getQuery()->getResult(); } @@ -131,6 +133,8 @@ final class NotificationRepository implements ObjectRepository $query = $query->setFirstResult($offset); } + $query->addOrderBy('n.date', 'DESC'); + return $query->getQuery()->getResult(); }