Make sure the search method sorts by update_datetime in descending order

This commit is contained in:
Alex Tselegidis 2022-10-16 18:07:01 +03:00
parent 581609ea43
commit c8ebfae7ff
5 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);