From c5f3af8ccda35d509632a4e590a2c2abebb06d4f Mon Sep 17 00:00:00 2001 From: Stefan Hanauska Date: Sun, 9 Mar 2025 11:23:01 +0100 Subject: [PATCH] MDL-84781 format_singleactivity: Sort activity types by name --- course/format/singleactivity/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/format/singleactivity/lib.php b/course/format/singleactivity/lib.php index 1ee26501233..55e0a92a6d6 100644 --- a/course/format/singleactivity/lib.php +++ b/course/format/singleactivity/lib.php @@ -146,6 +146,7 @@ class format_singleactivity extends core_courseformat\base { if ($fetchtypes) { $availabletypes = $this->get_supported_activities(); + core_collator::asort($availabletypes); if ($this->courseid) { // The course exists. Test against the course. $testcontext = context_course::instance($this->courseid);