Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11072

Sort groups alphabetically by group name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9
    • Component/s: Groups
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            aborrow Anthony Borrow
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08