Merge branch 'MDL-57727-master' of git://github.com/mihailges/moodle
authorDavid Monllao <davidm@moodle.com>
Tue, 2 Jan 2018 11:33:40 +0000 (12:33 +0100)
committerDavid Monllao <davidm@moodle.com>
Tue, 2 Jan 2018 11:33:40 +0000 (12:33 +0100)
report/progress/index.php

index a3105fe..487330e 100644 (file)
@@ -147,7 +147,7 @@ if ($total) {
         implode(' AND ', $where),
         $where_params,
         $group,
-        $firstnamesort ? 'u.firstname ASC' : 'u.lastname ASC',
+        $firstnamesort ? 'u.firstname ASC, u.lastname ASC' : 'u.lastname ASC, u.firstname ASC',
         $csv ? 0 : COMPLETION_REPORT_PAGE,
         $csv ? 0 : $start,
         $context