From c1c453e5675c59025e5864e2dc48faf917b8148a Mon Sep 17 00:00:00 2001
From: Tobias Baden <tobias.baden@stud.hs-hannover.de>
Date: Sun, 16 Sep 2018 17:00:50 +0200
Subject: [PATCH] Sorted Courses by shortname - Updated Version Number and
 Release

---
 lib.php     | 3 +++
 version.php | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/lib.php b/lib.php
index 4b0ea6e..64a68f1 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 729efc0..d07d7ce 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);
-- 
GitLab