diff --git a/classes/helper.php b/classes/helper.php index 8904daf..7c0e9e5 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -564,7 +564,7 @@ public static function get_course_tags(int $courseid = 0): array { FROM {tag} t JOIN {tag_instance} ti ON t.id = ti.tagid WHERE ti.itemtype = 'course' $where - ORDER BY t.id, t.rawname"; + ORDER BY t.rawname, t.id"; return $DB->get_records_sql($sql, $params); }