Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-20607 - adding firstname as secondary sort criteria

  • Loading branch information...
commit eddf533b0a16b512951c96589292d056188d3f27 1 parent 44ddbc6
Anthony Borrow, S.J. arborrow authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/accesslib.php
2  lib/accesslib.php
View
@@ -5011,7 +5011,7 @@ function sort_by_roleassignment_authority($users, $context, $roles=array(), $sor
* @param bool gethidden - whether to fetch hidden enrolments too
* @return array()
*/
-function get_role_users($roleid, $context, $parent=false, $fields='', $sort='u.lastname ASC', $gethidden=true, $group='', $limitfrom='', $limitnum='') {
+function get_role_users($roleid, $context, $parent=false, $fields='', $sort='u.lastname ASC, u.firstname ASC', $gethidden=true, $group='', $limitfrom='', $limitnum='') {
global $CFG;
if (empty($fields)) {
Please sign in to comment.
Something went wrong with that request. Please try again.