Skip to content
Snippets Groups Projects
Commit a3b9c252 authored by Eric Jiang's avatar Eric Jiang
Browse files

Sort IdP's in alphabetical order in dropdown.

parent d47bd324
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,12 @@ foreach ($this->data['idplist'] AS $idpentry) { ...@@ -38,6 +38,12 @@ foreach ($this->data['idplist'] AS $idpentry) {
<input type="hidden" name="returnIDParam" value="<?php echo htmlspecialchars($this->data['returnIDParam']); ?>" /> <input type="hidden" name="returnIDParam" value="<?php echo htmlspecialchars($this->data['returnIDParam']); ?>" />
<select id="dropdownlist" name="idpentityid"> <select id="dropdownlist" name="idpentityid">
<?php <?php
usort($this->data['idplist'], function($idpentry1, $idpentry2) {
return strcmp($this->t('idpname_' . $idpentry1['entityid']),
$this->t('idpname_' . $idpentry2['entityid']));
});
foreach ($this->data['idplist'] AS $idpentry) { foreach ($this->data['idplist'] AS $idpentry) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment