Moodle
  1. Moodle
  2. MDL-23899

Add support for localised sorting in textlib - use php intl extension

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Unicode
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      At present we can not sort arrays in a proper, the official way is to use PHP intl extension, I think we should add our wrappers into textlib for this...

        Gliffy Diagrams

          Activity

          Hide
          Petr Skoda added a comment - - edited

          done, yay! use textlib_get_instance()->asort($array) to get an array sorted properly.

          Show
          Petr Skoda added a comment - - edited done, yay! use textlib_get_instance()->asort($array) to get an array sorted properly.

            People

            • Assignee:
              Petr Skoda
              Reporter:
              Petr Skoda
              Tester:
              Nobody
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: