Permalink
Browse files

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

  • Loading branch information...
ISHIKAWA Takayuki authored and danpoltawski committed Jun 14, 2012
1 parent b16832d commit 81bf2a1a1d308ae49062a0c5f821596273996566
Showing with 3 additions and 0 deletions.
  1. +3 −0 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";

0 comments on commit 81bf2a1

Please sign in to comment.