When using the Groupings functionality in either 1.9 (restrict access to a resource or activity to a specific grouping) or 2.1 (apply the selected group mode to the groups in the selected grouping), the drop-down menu that lists the Groupings lists them in the order in which they were created. It would be fantastic if the groupings were displayed in alphabetical order.
In 1.9 this is an easy fix: in course/modedit_form.php, at line 251, add the following line (surrounding lines shown for reference):
if ($groupings = get_records('groupings', 'courseid', $COURSE->id)) {
|
+ sort($groupings); // ADD THIS LINE
|
foreach ($groupings as $grouping) {
|
This fix doesn't work in 2.1; I'll have to do some more poking through the code to see what's changed.