]> git.sur5r.net Git - bacula/bacula/commitdiff
Modify the sql query to get alphabetical order of clients when selecting the most...
authorHolger Mueller <holger.mueller@dass-it.de>
Wed, 6 Jan 2010 09:05:15 +0000 (10:05 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 6 Jan 2010 09:05:15 +0000 (10:05 +0100)
Signed-off-by: Eric Bollengier <eric@eb.homelinux.org>
bacula/src/cats/sql_get.c

index 95dbf32fb30a2361a443c019be88b34b81833e4a..4e34e73eb52ddc3b72cb3aac93515df647f1b3bf 100644 (file)
@@ -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) {