I believe it is the print_and_setup_groups function that creates a dropdown list of the various groups. I noticed this when I was working with the gradebook code that the groups are not sorted alphabetically by group name. It would seem to me that this would be useful to the user and provide a little more order to things. Currently it looks like they are sorted by the order in which they are added (i.e. the group's id field). I would think it would be pretty simple to sort the array once the records are retrieved.