Commit 9f266d80 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1650995: Fixing IdP discovery page sort order



Sorting by 'Identity Provider entity' column

behatnotneeded

Change-Id: I8ef8d9a34d0f13f752377d01ef666fe170254d3f
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 5f62ff6c)
parent 194f4921
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -344,6 +344,9 @@ function auth_saml_disco_screen($list, $preferred) {
        $idps[]= array('idpentityid' => $entityid, 'name' => $name, 'description' => $desc, 'logo' => $idplogo);
    }

    usort($idps, function($a, $b) {
        return $a['name'] > $b['name'];
    });
    $idps = array(
        'count'   => count($idps),
        'limit'   => count($idps),