From 64aafb5ca73d329663a93f80ac9cf3e68a082866 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 21 Aug 2010 20:51:26 +0000 Subject: Merged r6534-6559 from 1.7 branch to trunk git-svn-id: http://code.elgg.org/elgg/trunk@6840 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/friends/picker.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'views/default/friends/picker.php') 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) { ?> -- cgit v1.2.3