From 890e3ac4d955d3e5b5f67674f21172509cbab4d4 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 4 May 2023 17:55:29 +0200 Subject: [PATCH] Order the records by update datetime to avoid them missing in the UI --- application/controllers/Admins.php | 2 +- application/controllers/Customers.php | 2 +- application/controllers/Providers.php | 2 +- application/controllers/Secretaries.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/Admins.php b/application/controllers/Admins.php index e482574f..95ebb951 100644 --- a/application/controllers/Admins.php +++ b/application/controllers/Admins.php @@ -92,7 +92,7 @@ class Admins extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'first_name ASC, last_name ASC, email ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index db21dba5..bc95b337 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -125,7 +125,7 @@ class Customers extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'first_name ASC, last_name ASC, email ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Providers.php b/application/controllers/Providers.php index e02f356a..508fa5d5 100644 --- a/application/controllers/Providers.php +++ b/application/controllers/Providers.php @@ -106,7 +106,7 @@ class Providers extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'first_name ASC, last_name ASC, email ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Secretaries.php b/application/controllers/Secretaries.php index c402f69f..043a984a 100644 --- a/application/controllers/Secretaries.php +++ b/application/controllers/Secretaries.php @@ -106,7 +106,7 @@ class Secretaries extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'first_name ASC, last_name ASC, email ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000);