Skip to content

Commit c750a29

Browse files
committed
fix: alpha sort strategies by name when listed
1 parent c440e32 commit c750a29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ OAuth.addAdminNavigation = (header) => {
4545

4646
OAuth.listStrategies = async (full) => {
4747
const names = await db.getSortedSetMembers('oauth2-multiple:strategies');
48+
names.sort();
49+
4850
const strategies = await db.getObjects(names.map(name => `oauth2-multiple:strategies:${name}`), full ? undefined : ['enabled']);
4951
strategies.forEach((strategy, idx) => {
5052
strategy.name = names[idx];

0 commit comments

Comments
 (0)