From b68b5f55ca25f7dd4d2c5e226924a4a3c6fbc52c Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 12 Dec 2017 09:39:17 +0800 Subject: [PATCH] MDL-57727 reports: Activity completion report sorting problem --- report/progress/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/progress/index.php b/report/progress/index.php index a3105fe1857..487330ec7ed 100644 --- a/report/progress/index.php +++ b/report/progress/index.php @@ -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