From 024790128a656e1ffd09ea7f3ffb888f1c19adcd Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 20 Sep 2023 16:11:50 +0200 Subject: [PATCH] adjust history order --- .../ChillMainBundle/Controller/UserJobHistoryController.php | 4 ++-- .../ChillMainBundle/Controller/UserScopeHistoryController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Controller/UserJobHistoryController.php b/src/Bundle/ChillMainBundle/Controller/UserJobHistoryController.php index 069ef5385..eb181f252 100644 --- a/src/Bundle/ChillMainBundle/Controller/UserJobHistoryController.php +++ b/src/Bundle/ChillMainBundle/Controller/UserJobHistoryController.php @@ -20,8 +20,8 @@ class UserJobHistoryController extends CRUDController protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator) { $query - ->addOrderBy('e.startDate', 'ASC') - ->addOrderBy('e.id', 'ASC') + ->addOrderBy('e.startDate', 'DESC') + ->addOrderBy('e.user', 'ASC') ; return parent::orderQuery($action, $query, $request, $paginator); diff --git a/src/Bundle/ChillMainBundle/Controller/UserScopeHistoryController.php b/src/Bundle/ChillMainBundle/Controller/UserScopeHistoryController.php index 5b4e4cb96..2d425456f 100644 --- a/src/Bundle/ChillMainBundle/Controller/UserScopeHistoryController.php +++ b/src/Bundle/ChillMainBundle/Controller/UserScopeHistoryController.php @@ -20,8 +20,8 @@ class UserScopeHistoryController extends CRUDController protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator) { $query - ->addOrderBy('e.startDate', 'ASC') - ->addOrderBy('e.id', 'ASC') + ->addOrderBy('e.startDate', 'DESC') + ->addOrderBy('e.user', 'ASC') ; return parent::orderQuery($action, $query, $request, $paginator);