Skip to content

Commit

Permalink
fix: sort scopes list
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Sep 25, 2021
1 parent ba0a478 commit e2e443f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void switchProtocol(String protocol) {
}

private void computeSelectableScopes() {
selectableScopes = scopeService.getNonUMAScopes().stream().map(Scope::getId).sorted().collect(Collectors.toSet());
selectableScopes = scopeService.getNonUMAScopes().stream().map(Scope::getId).collect(Collectors.toCollection(TreeSet::new));
//Remove already checked ones
selectableScopes.removeAll(oxdSettings.getScopes());
logger.debug("Selectable scopes are: {}", selectableScopes);
Expand Down

0 comments on commit e2e443f

Please sign in to comment.