Skip to content

Commit

Permalink
feat(tree-explorer): sort dbs in the tree by name (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy authored Jul 10, 2023
1 parent c2b23a1 commit 7977fdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/explorer/connectionTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ export default class ConnectionTreeItem
}

const databases = await this.listDatabases();
databases.sort((a: string, b: string) => {
return a.localeCompare(b);
});

this.cacheIsUpToDate = true;

Expand Down

0 comments on commit 7977fdf

Please sign in to comment.