From: Holger Mueller Date: Wed, 6 Jan 2010 09:05:15 +0000 (+0100) Subject: Modify the sql query to get alphabetical order of clients when selecting the most... X-Git-Tag: Release-5.0.0~91^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=42d7893670e1f460ffac0491b16c5eb1fdea4c1b;p=bacula%2Fbacula Modify the sql query to get alphabetical order of clients when selecting the most recent backup for a client Signed-off-by: Eric Bollengier --- diff --git a/bacula/src/cats/sql_get.c b/bacula/src/cats/sql_get.c index 95dbf32fb3..4e34e73eb5 100644 --- a/bacula/src/cats/sql_get.c +++ b/bacula/src/cats/sql_get.c @@ -568,7 +568,7 @@ int db_get_client_ids(JCR *jcr, B_DB *mdb, int *num_ids, uint32_t *ids[]) db_lock(mdb); *ids = NULL; - Mmsg(mdb->cmd, "SELECT ClientId FROM Client"); + Mmsg(mdb->cmd, "SELECT ClientId FROM Client ORDER BY Name"); if (QUERY_DB(jcr, mdb, mdb->cmd)) { *num_ids = sql_num_rows(mdb); if (*num_ids > 0) {