]> git.mjollnir.org Git - moodle.git/commitdiff
Sort question list by question type
authormoodler <moodler>
Sat, 1 Mar 2003 05:11:44 +0000 (05:11 +0000)
committermoodler <moodler>
Sat, 1 Mar 2003 05:11:44 +0000 (05:11 +0000)
mod/quiz/lib.php

index 8935cbcfea17d685de64230bf37686d76387bd18..8edeffc9520112f944660da13a4d23d88127e7d4 100644 (file)
@@ -898,7 +898,7 @@ function quiz_print_cat_question_list($categoryid) {
 
     echo "</CENTER>";
 
-    if (!$questions = get_records("quiz_questions", "category", $category->id)) {
+    if (!$questions = get_records("quiz_questions", "category", $category->id, "qtype ASC")) {
         echo "<P align=center>";
         print_string("noquestions", "quiz");
         echo "</P>";