MDL-77029 gradereport_grader: Add sorting to grade item columns

This commit is contained in:
Ilya Tregubov
2023-03-28 11:22:42 +08:00
parent 09fd61415e
commit fc9583bae1
11 changed files with 261 additions and 49 deletions
-1
View File
@@ -443,7 +443,6 @@ abstract class grade_report {
$pix = ['up' => 't/sort_desc', 'down' => 't/sort_asc'];
$matrix = ['up' => 'desc', 'down' => 'asc'];
$strsort = $this->get_lang_string($matrix[$direction], 'moodle');
$arrow = $OUTPUT->pix_icon($pix[$direction], '', '', ['class' => 'sorticon']);
return html_writer::link($sortlink, $arrow, ['title' => $strsort, 'aria-label' => $strsort]);
}