Skip to content
Snippets Groups Projects
Commit f50299dc authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Merge pull request #112 from doublemap/master

Sort IdP's in alphabetical order in dropdown.
parents 48bd3747 a3b9c252
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,12 @@ foreach ($this->data['idplist'] AS $idpentry) { ...@@ -32,6 +32,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