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

Folder: Subfolders are not sorted correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.4.6, 2.5.2
    • 2.4.3
    • Resource
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MDL-40086-master
    • 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.

      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.

            fred Frédéric Massart
            quen Sam Marshall
            Marina Glancy Marina Glancy
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.