Skip to content

Commit

Permalink
ARC-1269: Sort IDPs by name
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva committed Feb 12, 2024
1 parent efcb870 commit 2c355b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public Pages(TemplateRenderer renderer) {
}

public String selectIdpForm(List<IdpEntry> identityProviders) {
identityProviders.sort(Comparator.comparing(IdpEntry::name));
identityProviders =
identityProviders.stream().sorted(Comparator.comparing(IdpEntry::name)).toList();
return renderer.render(
"select-idp.html.mustache", Map.of("identityProviders", identityProviders));
}
Expand Down

0 comments on commit 2c355b7

Please sign in to comment.