]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from MOODLE_14_STABLE: Fix for bug #2207 - sortorder now honored in front...
authormjollnir_ <mjollnir_>
Mon, 22 Nov 2004 21:30:26 +0000 (21:30 +0000)
committermjollnir_ <mjollnir_>
Mon, 22 Nov 2004 21:30:26 +0000 (21:30 +0000)
course/lib.php

index a0b14a166efed28339982455641e739ce9d6caad..a329adda0d7acb513ebc33b3f50e29fbedaa5318 100644 (file)
@@ -1149,7 +1149,7 @@ function print_category_info($category, $depth) {
     echo "\n\n".'<table border="0" cellpadding="3" cellspacing="0" width="100%">';
 
     if ($CFG->frontpage == FRONTPAGECOURSELIST) {
-        $courses = get_courses($category->id, NULL, 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary');
+        $courses = get_courses($category->id, 'c.sortorder ASC', 'c.id,c.sortorder,c.visible,c.fullname,c.shortname,c.password,c.summary');
 
         echo "<tr>";