[pmwiki-users] pagelist sort using locale

Christophe David pmwiki at christophedavid.org
Fri Feb 6 03:42:21 CST 2009


When sorting pagelists, for example  with the option  "order=title",
the sort does not take in account locale settiings.

This causes the french accented 'a'  ('à' or 'â' ) to be  listed after 'z'.

The PHP sort function allows a second parameter (bool sort  ( array
&$array  [, int $sort_flags=SORT_REGULAR  ] )) which can be set to
SORT_LOCALE_STRING.

Is there a way to tell PmWiki to use this mode when sorting, without
programming  a dedicated function (CustomPagelistSortOrder) ?

Christophe



More information about the pmwiki-users mailing list