Skip to content
Snippets Groups Projects
Commit c782a225 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

IdpDisco: make sorting case insensitive and apply it also to the 'links' variant

parent 5717c94d
Branches
Tags
No related merge requests found
......@@ -34,7 +34,7 @@ foreach ($this->data['idplist'] as $idpentry) {
<select id="dropdownlist" name="idpentityid">
<?php
usort($this->data['idplist'], function ($idpentry1, $idpentry2) {
return strcmp(
return strcasecmp(
$this->t('idpname_'.$idpentry1['entityid']),
$this->t('idpname_'.$idpentry2['entityid'])
);
......
......@@ -34,6 +34,12 @@ foreach ($this->data['idplist'] as $idpentry) {
}
?></p>
<?php
usort($this->data['idplist'], function ($idpentry1, $idpentry2) {
return strcasecmp(
$this->t('idpname_'.$idpentry1['entityid']),
$this->t('idpname_'.$idpentry2['entityid'])
);
});
if (!empty($this->data['preferredidp']) &&
array_key_exists($this->data['preferredidp'], $this->data['idplist'])
) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment