From c10dcf7f0c79ba02aa77f5ad3c4a51d2836adc6c Mon Sep 17 00:00:00 2001 From: Sandip Agarwal Date: Sun, 27 Sep 2020 16:07:49 +0530 Subject: [PATCH] set the employees listing in alphabetical order of name --- application/modules/default/models/Employee.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/modules/default/models/Employee.php b/application/modules/default/models/Employee.php index 14f1ff6e0..9888a3a68 100644 --- a/application/modules/default/models/Employee.php +++ b/application/modules/default/models/Employee.php @@ -108,7 +108,7 @@ public function getEmployees($managerid='',$loginUserId,$limit,$offset,$search_v )) ->where($where) ->limit($limit, $offset) - ->order('e.modifieddate desc'); + ->order('e.firstname asc', 'e.lastname asc'); // ->order('e.modifieddate desc'); Listing of employees should be in alphabetical order of name return $this->fetchAll($employeesData)->toArray(); }