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

Country list wasn't sorted correctly (sort() is not locale-aware)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Unknown
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When using sort(), strings with unicode characters end up last. We must use uasort and strcoll to make this work, and the proper locale should be set with setlocale before.

        Attachments

          Activity

            People

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

              Dates

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