From bc5d2fff1977425e8c8f4b892c8cf6195747ad38 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 8 May 2018 15:48:45 +0200 Subject: [PATCH] alphabetical professor order --- build/database/repo/professor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/database/repo/professor.php b/build/database/repo/professor.php index 0dc845b..4741a85 100644 --- a/build/database/repo/professor.php +++ b/build/database/repo/professor.php @@ -321,7 +321,7 @@ class professor extends Repo_i { $parm = is_null($prof_id) ? [] : [':id' => $prof_id]; /* (2) Prepare Statement */ - $st = $this->pdo->prepare("SELECT * FROM `Professeur`$cond ORDER BY abreviation ASC"); + $st = $this->pdo->prepare("SELECT * FROM `Professeur`$cond ORDER BY firstName, lastName ASC"); /* (3) Bind params and execute statement */ if( is_bool($st) ) return []; @@ -433,7 +433,8 @@ class professor extends Repo_i { AND VHTp.idProf = Prof.idProfesseur AND VHTd.idProf = Prof.idProfesseur GROUP BY - Prof.idProfesseur;"); + Prof.idProfesseur + ORDER BY Prof.firstName, Prof.lastName ASC;"); /* (3) Bind params and execute statement */ if( is_bool($st) ) return [];