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

This commit is contained in:
ISHIKAWA Takayuki 2012-06-14 21:29:33 +09:00 committed by Ankit Agarwal
parent d71b79a406
commit 69101b4392

View File

@ -411,6 +411,9 @@ class grade_report_grader extends grade_report {
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";