From aa88ec81c792830d91771512d719dfc5f1a2893e Mon Sep 17 00:00:00 2001 From: Frank Karlitschek <frank@owncloud.org> Date: Fri, 1 Jun 2012 14:21:24 +0200 Subject: [PATCH] sort users and groups. fixes oc-779 --- lib/group.php | 2 ++ lib/user.php | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/group.php b/lib/group.php index 1e0216a932b..91772d510ff 100644 --- a/lib/group.php +++ b/lib/group.php @@ -233,6 +233,7 @@ class OC_Group { $groups=array_merge($backend->getUserGroups($uid),$groups); } + asort($groups); return $groups; } @@ -250,6 +251,7 @@ class OC_Group { $groups=array_merge($backend->getGroups(),$groups); } + asort($groups); return $groups; } diff --git a/lib/user.php b/lib/user.php index 056d1307543..a62b0f96838 100644 --- a/lib/user.php +++ b/lib/user.php @@ -336,6 +336,7 @@ class OC_User { } } } + asort($users); return $users; } -- GitLab