From: gbateson Date: Sat, 18 Nov 2006 08:55:11 +0000 (+0000) Subject: fix sort order of questions in legend, which caused mismatch between question numbers... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dce744cc05c776f7ed81efefbfcbd388744863ac;p=moodle.git fix sort order of questions in legend, which caused mismatch between question numbers used in Detailed Statistics report and those used in the legend --- diff --git a/mod/hotpot/report/default.php b/mod/hotpot/report/default.php index c70a51882a..a7e4ae27f2 100644 --- a/mod/hotpot/report/default.php +++ b/mod/hotpot/report/default.php @@ -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) {