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 [];