ovsdb-client: Make "list-dbs" print the list of databases in sorted order.
[openvswitch] / ovsdb / ovsdb-client.c
index 12f34d5168bf17dc60d8f27795ef3598ea8f7307..d5d2189ed7e88091fe9b4a9a7415960d01807eb6 100644 (file)
@@ -405,6 +405,7 @@ do_list_dbs(struct jsonrpc *rpc, const char *database OVS_UNUSED,
 
     svec_init(&dbs);
     fetch_dbs(rpc, &dbs);
+    svec_sort(&dbs);
     SVEC_FOR_EACH (i, db_name, &dbs) {
         puts(db_name);
     }