MDL-15751 "Quiz statistics report : only list random questions once when there are several consecutive random questions picking from the same category with the same options to recurse into sub directories" sorting of questions by id, so they appear in some kind of order.

This commit is contained in:
jamiesensei
2008-07-22 12:33:05 +00:00
parent d49e5bd87c
commit 182dbc6f4d
+3
View File
@@ -136,6 +136,9 @@ class qstats{
}
}
}
foreach ($this->randomselectors as $key => $randomselector){
ksort($this->randomselectors[$key]);
}
$this->subquestions = question_load_questions(array_keys($subquestionstats));
foreach (array_keys($this->subquestions) as $qid){
$this->subquestions[$qid]->_stats = $subquestionstats[$qid];