MDL-9628 Fixed sorting

This commit is contained in:
nicolasconnault
2007-08-06 08:10:37 +00:00
parent 72ce416cd7
commit 859c72599f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ class grade_report_grader extends grade_report {
$this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
}
} else {
$this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
$this->sortorder = $SESSION->gradeuserreport->sort = 'DESC';
}
}
$SESSION->gradeuserreport->sortitemid = $this->sortitemid;
+1 -1
View File
@@ -350,7 +350,7 @@ class grade_report {
* @param string HTML
*/
function get_sort_arrow($direction='move', $sort_link=null) {
$matrix = array('up' => 'asc', 'down' => 'desc', 'move' => 'asc');
$matrix = array('up' => 'asc', 'down' => 'desc', 'move' => 'desc');
$strsort = $this->get_lang_string('sort' . $matrix[$direction]);
$arrow = print_arrow($direction, $strsort, true);
$html = '<a href="'.$sort_link .'">' . $arrow . '</a>';