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

Files view sorts files in case-sensitive order

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.6, 1.7, 1.8
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      When viewing "Files" page for a course, the files are listed in case-sensitive order. This is confusing for most users who are used to case-insensitive sorting.

      To fix:

      File: /files/index.php
      Line: 784

      Change:
      asort($filelist);

      to:
      natcasesort($filelist);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                8 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: