From 10b158a1822957b7ff2a2357fd326eb98e718309 Mon Sep 17 00:00:00 2001
From: Johannes Meyer <johannes.meyer@netways.de>
Date: Thu, 21 May 2015 13:53:27 +0200
Subject: [PATCH] LdapUserBackend: Fix sorting when sorting by user_name

refs #8826
---
 library/Icinga/Authentication/User/LdapUserBackend.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/Icinga/Authentication/User/LdapUserBackend.php b/library/Icinga/Authentication/User/LdapUserBackend.php
index 7b9ffa253..7fc61dbc1 100644
--- a/library/Icinga/Authentication/User/LdapUserBackend.php
+++ b/library/Icinga/Authentication/User/LdapUserBackend.php
@@ -57,8 +57,8 @@ class LdapUserBackend extends Repository implements UserBackendInterface
     protected $sortRules = array(
         'user_name' => array(
             'columns'   => array(
-                'user_name asc',
-                'is_active desc'
+                'is_active desc',
+                'user_name'
             )
         )
     );