sort the complete sql stmts to get proper ordering on tab complete

This commit is contained in:
Anthony Minessale
2010-07-06 12:02:50 -05:00
parent cae9129f0a
commit d239b31dfc
2 changed files with 2 additions and 1 deletions

View File

@@ -756,7 +756,7 @@ SWITCH_DECLARE(unsigned char) switch_console_complete(const char *line, const ch
}
}
stream.write_function(&stream, " and hostname='%s'", switch_core_get_variable("hostname"));
stream.write_function(&stream, " and hostname='%s' order by a1,a2,a3,a4,a5,a6,a7,a8,a9,a10", switch_core_get_variable("hostname"));
switch_cache_db_execute_sql_callback(db, stream.data, comp_callback, &h, &errmsg);
if (errmsg) {