diff --git a/lib/discovery.js b/lib/discovery.js index d765ea945..63fb4a98a 100644 --- a/lib/discovery.js +++ b/lib/discovery.js @@ -186,6 +186,7 @@ function mixinDiscovery(MySQL, mysql) { (table ? ' WHERE table_name=' + mysql.escape(table) : ''), 'table_name, ordinal_position', {}); } + sql += " ORDER BY ordinal_position"; return sql; };