MDL-39992 assign: Sort grading actions in alphabetical order
authorDamyon Wiese <damyon@moodle.com>
Mon, 2 Sep 2013 14:23:03 +0000 (22:23 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 2 Sep 2013 14:23:03 +0000 (22:23 +0800)
mod/assign/locallib.php

index 51274f4..f80b43f 100644 (file)
@@ -2925,6 +2925,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'));