From 4b5ee1bf34f20115b6c67ce34f5384c01ee28920 Mon Sep 17 00:00:00 2001 From: danmarsden Date: Thu, 26 Mar 2009 21:23:25 +0000 Subject: [PATCH] Choice MDL-18600 fix sort to be sorted by surname,firstname - thanks to Mihai Sucan for the fix --- mod/choice/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index c0befa5a8a..e448bbeb7f 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -727,7 +727,7 @@ function choice_get_response_data($choice, $cm, $groupmode) { /// First get all the users who have access here /// To start with we assume they are all "unanswered" then move them later - $allresponses[0] = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', false, true); + $allresponses[0] = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.lastname ASC,u.firstname ASC', '', '', $currentgroup, '', false, true); /// Get all the recorded responses for this choice $rawresponses = $DB->get_records('choice_answers', array('choiceid' => $choice->id)); -- 2.39.5