diff --git a/lib.php b/lib.php index 4b0ea6e002522dc345fc2310b9f8f70b6aec9352..64a68f102275bfd8c24173b1b189b61c6865c1b0 100644 --- a/lib.php +++ b/lib.php @@ -29,6 +29,9 @@ function local_hsh_boostnavigation_extend_navigation(global_navigation $navigati // Alle Kurse abfragen, in die die Person eingeschrieben ist $courses = enrol_get_my_courses('*', ''); if (!empty($courses)) { + usort($courses, function($a, $b){ + return strcasecmp($a->shortname, $b->shortname); + }); foreach ($courses as $course) { $semester = getSemesterNodeHsH($customnav, $course, $semesterList,$semesterKeys); $semester->showinflatnavigation = true; diff --git a/version.php b/version.php index 729efc0b8862074e6a7ddbf0d41a75b387bbc550..d07d7cee79dd5192abdd936811627c9ced956c5c 100644 --- a/version.php +++ b/version.php @@ -25,11 +25,11 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_hsh_boostnavigation'; -$plugin->version = 2018091300; -$plugin->release = 'v1.1-r5'; +$plugin->version = 2018091600; +$plugin->release = 'v1.1-r6'; $plugin->requires = 2016120500; #$plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array('theme_boost' => 2016120500, - 'block_course_overview_campus' => 2017033100, - 'local_boostnavigation' => 2017100901); + 'block_course_overview_campus' => 2017033100, + 'local_boostnavigation' => 2017100901);