aboutsummaryrefslogtreecommitdiff
path: root/views/default/friends/picker.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/friends/picker.php')
-rw-r--r--views/default/friends/picker.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/default/friends/picker.php b/views/default/friends/picker.php
index 4b8d10111..7b47ed675 100644
--- a/views/default/friends/picker.php
+++ b/views/default/friends/picker.php
@@ -83,6 +83,14 @@ if (is_array($vars['entities']) && sizeof($vars['entities'])) {
}
}
+// sort users in letters alphabetically
+foreach ($users as $letter => $letter_users) {
+ usort($letter_users, create_function('$a, $b', '
+ return strcasecmp($a->name, $b->name);
+ '));
+ $users[$letter] = $letter_users;
+}
+
if (!$callback) {
?>