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

Folder: Subfolders are not sorted correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Resource
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a new Folder
      2. Type anything for the name
      3. In Files, click 'Create Folder':
        • Create 3 folders name '3', '1' and then '2'. The order in which you create them is important!
        • Mess with the natural ordering (create folder named '003', '100', etc...)
      4. Click into folder 1.
      5. Repeat step 3 to create subfolders
      6. Repeat step 3 to create subfolders in a subfolder.
      7. Save and display
      8. Make sure the (sub)folders are displayed in natural order.
      Show
      Create a new Folder Type anything for the name In Files, click 'Create Folder': Create 3 folders name '3', '1' and then '2'. The order in which you create them is important! Mess with the natural ordering (create folder named '003', '100', etc...) Click into folder 1. Repeat step 3 to create subfolders Repeat step 3 to create subfolders in a subfolder. Save and display Make sure the (sub)folders are displayed in natural order.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40086-master

      Description

      Testing instructions

      1. Create a new Folder
      2. Type anything for the name
      3. In Files, click 'Create Folder' and create a folder called 3. Repeat to create a folder called 1, and then another called 2. (The order is important!)
      4. Click into folder 1.
      5. Repeat step 3 to create subfolders (first 3, then 1, then 2).
      6. Save and display

      EXPECTED: The folders should display in order (first top-level folder 1, then subfolders 1, 2, 3, then outer folders 2 and 3).

      ACTUAL: The top level folders are sorted correctly, but subfolders are returned in a different order (which might be a bit random depending on database ordering, but in my testing, it was 3, 1, 2).

      Tested just now on qa.moodle.net as well as in OU Moodle 2.4.3. Our users say this problem only appeared after moving to 2.4, but we don't know if that is due to a database reindex or something.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13