Merge branch 'MDL-39992-master' of git://github.com/damyon/moodle
[moodle.git] / mod / assign / locallib.php
index a8919cf..ad00769 100644 (file)
@@ -2927,6 +2927,9 @@ class assign {
             }
         }
 
+        // Sort links alphabetically based on the link description.
+        core_collator::asort($links);
+
         $gradingactions = new url_select($links);
         $gradingactions->set_label(get_string('choosegradingaction', 'assign'));