]> git.mjollnir.org Git - moodle.git/commitdiff
fix sort order of questions in legend, which caused mismatch between question numbers...
authorgbateson <gbateson>
Sat, 18 Nov 2006 08:55:11 +0000 (08:55 +0000)
committergbateson <gbateson>
Sat, 18 Nov 2006 08:55:11 +0000 (08:55 +0000)
mod/hotpot/report/default.php

index c70a51882a2019a7a4723cd8287c8dc6cd394d5a..a7e4ae27f2cd3ac5ec96187976e180aa60bce9a6 100644 (file)
@@ -93,7 +93,7 @@ class hotpot_default_report {
             $legend->stat = array();
 
             // put the questions in order
-            sort($table->legend);
+            ksort($table->legend);
 
             foreach($table->legend as $q=>$question) {