From 183ea4896814e0f806a1fbcea41aec7519c15f11 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 2 Oct 2009 06:34:12 +0000 Subject: [PATCH] user/view MDL-18800 Sort courses consistently with everything else --- user/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/view.php b/user/view.php index a841cadc7d..6f31b2d8eb 100644 --- a/user/view.php +++ b/user/view.php @@ -367,7 +367,7 @@ profile_display_fields($user->id); if (!isset($hiddenfields['mycourses'])) { - if ($mycourses = get_my_courses($user->id, null, null, false, 21)) { + if ($mycourses = get_my_courses($user->id, 'visible DESC,sortorder ASC', null, false, 21)) { $shown=0; $courselisting = ''; foreach ($mycourses as $mycourse) { @@ -583,4 +583,4 @@ function print_row($left, $right) { echo "\n$left$right\n"; } -?> \ No newline at end of file +?> -- 2.39.5