]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14091, fix myMoodle courses list sort order, Thanks IƱaki
authordongsheng <dongsheng>
Wed, 9 Apr 2008 02:46:55 +0000 (02:46 +0000)
committerdongsheng <dongsheng>
Wed, 9 Apr 2008 02:46:55 +0000 (02:46 +0000)
my/index.php

index 9547558ccf35b3dd187313aae8865fc852ef9bc1..449a9541e6adb00d2576c52555d68bd755c1befa 100644 (file)
@@ -65,7 +65,7 @@
 /// The main overview in the middle of the page
     
     // limits the number of courses showing up
-    $courses = get_my_courses($USER->id, null, '*', false, 21);
+    $courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, 21);
     $site = get_site();
     $course = $site; //just in case we need the old global $course hack