From f49d6ef97924f41581d4c60dfad80cd1c96822ad Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Tue, 22 Jan 2019 23:54:17 +0100 Subject: [PATCH] Default order desc --- app/Controllers/DashboardController.php | 2 +- resources/templates/dashboard/pager_header.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/DashboardController.php b/app/Controllers/DashboardController.php index b956e7e..3a2193c 100644 --- a/app/Controllers/DashboardController.php +++ b/app/Controllers/DashboardController.php @@ -51,7 +51,7 @@ class DashboardController extends Controller break; } - $query->orderBy($order, $request->getParam('order', 'ASC')) + $query->orderBy($order, $request->getParam('order', 'DESC')) ->withUserId($this->session->get('user_id')) ->search($request->getParam('search', null)) ->run($page); diff --git a/resources/templates/dashboard/pager_header.twig b/resources/templates/dashboard/pager_header.twig index dc47acb..ac49f26 100644 --- a/resources/templates/dashboard/pager_header.twig +++ b/resources/templates/dashboard/pager_header.twig @@ -24,8 +24,8 @@ {{ lang('size') }} - - + +