Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed dis-ordered displaying for quiz overview report when no soring …

…is specified (Merged from MOODLE_15_STABLE)
  • Loading branch information...
commit 2f5fe55234c74579779e7bb1091028769b9e0a19 1 parent 404fe83
authored October 28, 2005

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  mod/quiz/report/overview/report.php
5  mod/quiz/report/overview/report.php
@@ -316,6 +316,11 @@ function display($quiz, $cm, $course) {     /// This function just displays the
316 316
                 $sort = ' ORDER BY '.implode(', ', $newsort);
317 317
             }
318 318
 
  319
+            // Fix some wired sorting
  320
+            if (empty($sort)) {
  321
+                $sort = ' ORDER BY uniqueid';
  322
+            }
  323
+
319 324
             // Now it is time to page the data
320 325
             if (!isset($pagesize)  || ((int)$pagesize < 1) ) {
321 326
                 $pagesize = 10;

0 notes on commit 2f5fe55

Please sign in to comment.
Something went wrong with that request. Please try again.