From c8ebfae7ff27617b2bbdedd2c552da0eba8d3cc9 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 16 Oct 2022 18:07:01 +0300 Subject: [PATCH] Make sure the search method sorts by update_datetime in descending order --- application/controllers/Appointments.php | 2 +- application/controllers/Categories.php | 2 +- application/controllers/Services.php | 2 +- application/controllers/Unavailabilities.php | 2 +- application/controllers/Webhooks.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/controllers/Appointments.php b/application/controllers/Appointments.php index 852e6be5..f9720839 100644 --- a/application/controllers/Appointments.php +++ b/application/controllers/Appointments.php @@ -63,7 +63,7 @@ class Appointments extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'name ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Categories.php b/application/controllers/Categories.php index 1bc4cc76..06e78ad0 100644 --- a/application/controllers/Categories.php +++ b/application/controllers/Categories.php @@ -90,7 +90,7 @@ class Categories extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'name ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Services.php b/application/controllers/Services.php index e2dd21d1..a659da76 100644 --- a/application/controllers/Services.php +++ b/application/controllers/Services.php @@ -91,7 +91,7 @@ class Services extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'name ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Unavailabilities.php b/application/controllers/Unavailabilities.php index 5ea43484..cceb6172 100644 --- a/application/controllers/Unavailabilities.php +++ b/application/controllers/Unavailabilities.php @@ -48,7 +48,7 @@ class Unavailabilities extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'name ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000); diff --git a/application/controllers/Webhooks.php b/application/controllers/Webhooks.php index d2d37e2e..659dabca 100644 --- a/application/controllers/Webhooks.php +++ b/application/controllers/Webhooks.php @@ -107,7 +107,7 @@ class Webhooks extends EA_Controller { $keyword = request('keyword', ''); - $order_by = 'name ASC'; + $order_by = 'update_datetime DESC'; $limit = request('limit', 1000);