Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33757 gradebook: Adding support to sort userlist by email address

  • Loading branch information...
commit 81bf2a1a1d308ae49062a0c5f821596273996566 1 parent b16832d
ISHIKAWA Takayuki authored danpoltawski committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  grade/report/grader/lib.php
View
3  grade/report/grader/lib.php
@@ -359,6 +359,9 @@ public function load_users() {
case 'firstname':
$sort = "u.firstname $this->sortorder, u.lastname $this->sortorder";
break;
+ case 'email':
+ $sort = "u.email $this->sortorder";
+ break;
case 'idnumber':
default:
$sort = "u.idnumber $this->sortorder";
Please sign in to comment.
Something went wrong with that request. Please try again.