Permalink
Browse files

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

  • Loading branch information...
1 parent d71b79a commit 69101b43925b493a6802b9644436b6799801a123 ISHIKAWA Takayuki committed with ankitagarwal Jun 14, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 grade/report/grader/lib.php
@@ -411,6 +411,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 69101b4

Please sign in to comment.