diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index bee46667e8b..4ac3eb99c50 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -409,7 +409,7 @@ class FormOther $sql_usr.= " WHERE u2.entity IN (0,".$conf->entity.")"; $sql_usr.= " AND u2.rowid = sc.fk_user AND sc.fk_soc=".$user->societe_id; } - $sql_usr.= " ORDER BY lastname ASC"; + $sql_usr.= " ORDER BY u.statut DESC, lastname ASC"; //print $sql_usr;exit; $resql_usr = $this->db->query($sql_usr);