diff --git a/src/model/databaseNode.ts b/src/model/databaseNode.ts index 94b5d1f..a2257e9 100644 --- a/src/model/databaseNode.ts +++ b/src/model/databaseNode.ts @@ -34,7 +34,7 @@ export class DatabaseNode implements INode { certPath: this.certPath, }); - return Utility.queryPromise(connection, `SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = '${this.database}' LIMIT ${Utility.maxTableCount}`) + return Utility.queryPromise(connection, `SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = '${this.database}' ORDER BY TABLE_NAME LIMIT ${Utility.maxTableCount}`) .then((tables) => { return tables.map((table) => { return new TableNode(this.host, this.user, this.password, this.port, this.database, table.TABLE_NAME, this.certPath);