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

List of groupings is not sorted alphabetically

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.4, 2.6.1, 2.7
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Groups
    • Labels:
    • Testing Instructions:
      Hide
      1. Create several groupings in a course (preferably with multilang filter or some non-english language where SQL sort is not working good)
      2. Check that groupins are sorted alphabetically on the following pages:
        1. Edit course, select default grouping
        2. Create/edit module (select "visible groups" to activate groupings dropdown)
        3. Edit course section
        4. Groupings tab in Course administration>Groups
        5. Overview tab in Course administration>Groups
      Show
      Create several groupings in a course (preferably with multilang filter or some non-english language where SQL sort is not working good) Check that groupins are sorted alphabetically on the following pages: Edit course, select default grouping Create/edit module (select "visible groups" to activate groupings dropdown) Edit course section Groupings tab in Course administration>Groups Overview tab in Course administration>Groups
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-43800-master
    • Sprint:
      BACKEND Sprint 9

      Description

      Discovered while working on MDL-41285 when my behat tests were failing randomly. Apparently since I named groupings "Grouping 1", "Grouping 2", "Grouping 12" they were displayed in the random order in the dropdown and behat would sometime pick "Grouping 12" instead of "Grouping 1".

      I renamed the groupings in the test but since I've already spent two hours trying to understand the reasons for the random failure, I'm fixing the sort order. It is probably now better than groups sort order because it respects the non-english languages and multilang filter

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14