https://bugzilla.wikimedia.org/show_bug.cgi?id=34358

       Web browser: ---
             Bug #: 34358
           Summary: Arrays: Locale-specific sorting.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: ArticleFeedbackv5
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: van.de.bug...@gmail.com
    Classification: Unclassified


Created attachment 9997
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9997
Trivial patch.

I want #arraysort parser function respects current locale setting. In
particular, it allows case-insensitive sorting. To achieve this, the second
parameter should be passed to sort function:

> sort( $array, SORT_LOCALE_STRING );

Trivial patch is attached. However, it could change default behaviour.
Maintaining backward compatibility will require changes in interface. For
example:

> {{ #arraysort: key | asc, locale }}

or 

> {{ #arraysort: key | asc | locale }}

or

> {{ #arraysort: key | order=asc | flags=locale }}

or something similar. Let extension maintainer decide.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to