Removing code block which, upon closer inspection, does nothing at all.

This is obviously a copy/paste artifact from mod/quiz/report/overview/report.php,
but notice that over there is non-trivial processing going on over there with the
sortorder array!

The sortorder can be used directly in queries, just stick an "ORDER BY " in front.
This commit is contained in:
defacer 2005-11-13 04:01:41 +00:00
parent 9894b8246c
commit 86f6539591

View File

@ -902,13 +902,7 @@ class assignment_base {
}
if ($sort = $table->get_sql_sort()) {
$sortparts = explode(',', $sort);
$newsort = array();
foreach ($sortparts as $sortpart) {
$sortpart = trim($sortpart);
$newsort[] = $sortpart;
}
$sort = ' ORDER BY '.implode(', ', $newsort);
$sort = ' ORDER BY '.$sort;
}
$select = 'SELECT u.id, u.id, u.firstname, u.lastname, u.picture, s.id AS submissionid, s.grade, s.comment, s.timemodified, s.timemarked, ((s.timemarked > 0) AND (s.timemarked >= s.timemodified)) AS status ';