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 2927f8e commit efcb870
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.oviva.ehealthid.relyingparty.ws.ui;

import com.oviva.ehealthid.fedclient.IdpEntry;
import java.util.Comparator;
import java.util.List;
import java.util.Map;

Expand All @@ -13,6 +14,7 @@ public Pages(TemplateRenderer renderer) {
}

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

0 comments on commit efcb870

Please sign in to comment.