Skip to content

Commit 7977fdf

Browse files
authored
feat(tree-explorer): sort dbs in the tree by name (#488)
1 parent c2b23a1 commit 7977fdf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/explorer/connectionTreeItem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export default class ConnectionTreeItem
159159
}
160160

161161
const databases = await this.listDatabases();
162+
databases.sort((a: string, b: string) => {
163+
return a.localeCompare(b);
164+
});
162165

163166
this.cacheIsUpToDate = true;
164167

0 commit comments

Comments
 (0)