summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-06-01 14:18:14 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-06-01 14:18:14 +0200
commitad6562d14fabb0822e197e2ed70e4a3f8c02e23f (patch)
tree541098ceacda30d6192b840a76d27d3c2b27f510
parenta4f177d75d28649af21bc33975259e6d19cae634 (diff)
downloadnextcloud-server-ad6562d14fabb0822e197e2ed70e4a3f8c02e23f.tar.gz
nextcloud-server-ad6562d14fabb0822e197e2ed70e4a3f8c02e23f.zip
sort users and groups. fixes oc-779
-rw-r--r--lib/group.php2
-rw-r--r--lib/user.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/group.php b/lib/group.php
index a78eb51fff0..7967e1a581b 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 ee2a80b1599..d7e9bf1a64c 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -336,6 +336,7 @@ class OC_User {
}
}
}
+ asort($users);
return $users;
}