alphabetical professor order
This commit is contained in:
parent
6d57e0aa5b
commit
bc5d2fff19
|
@ -321,7 +321,7 @@ class professor extends Repo_i {
|
||||||
$parm = is_null($prof_id) ? [] : [':id' => $prof_id];
|
$parm = is_null($prof_id) ? [] : [':id' => $prof_id];
|
||||||
|
|
||||||
/* (2) Prepare Statement */
|
/* (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 */
|
/* (3) Bind params and execute statement */
|
||||||
if( is_bool($st) ) return [];
|
if( is_bool($st) ) return [];
|
||||||
|
@ -433,7 +433,8 @@ class professor extends Repo_i {
|
||||||
AND VHTp.idProf = Prof.idProfesseur
|
AND VHTp.idProf = Prof.idProfesseur
|
||||||
AND VHTd.idProf = Prof.idProfesseur
|
AND VHTd.idProf = Prof.idProfesseur
|
||||||
GROUP BY
|
GROUP BY
|
||||||
Prof.idProfesseur;");
|
Prof.idProfesseur
|
||||||
|
ORDER BY Prof.firstName, Prof.lastName ASC;");
|
||||||
|
|
||||||
/* (3) Bind params and execute statement */
|
/* (3) Bind params and execute statement */
|
||||||
if( is_bool($st) ) return [];
|
if( is_bool($st) ) return [];
|
||||||
|
|
Loading…
Reference in New Issue