Fix #500: sort lost users by promo and name
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 12 Oct 2006 11:02:14 +0000 (11:02 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 12 Oct 2006 11:02:14 +0000 (11:02 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@974 839d8a87-29fc-0310-9880-83ba4fa771e5

bin/cron/checkdb.php

index 01fa466..73c63ea 100755 (executable)
@@ -139,7 +139,8 @@ check("SELECT  u.user_id, a.alias
         FROM  auth_user_md5  AS u 
         INNER JOIN  aliases        AS a ON (u.user_id = a.id AND a.type='a_vie')
         LEFT JOIN  emails         AS e ON(u.user_id=e.uid AND FIND_IN_SET('active',e.flags))
-        WHERE  e.uid IS NULL AND u.deces = 0",
+        WHERE  e.uid IS NULL AND u.deces = 0
+        ORDER BY u.promo, u.nom, u.prenom",
         "donne les inscrits qui n'ont pas d'email actif");
 
 /* donne la liste des homonymes qui ont un alias égal à leur loginbis depuis plus d'un mois */