Pagelist sortByName and special characters
PermalinkI am adding a Pagelist block with code and are using
$pl->sortByName();
to sort the result alphabetically and it does so except for the special characters å, ä & ö. The å and ä appears in the top of the list and ö together with o. In most languages where they are used, they are listed at the end of the alphabet, after z.
Does anyone have an idea why this is and what I can do to make it appear according to the standards?
Thanks!

Changing these things might be difficult, but there's another way. If you use a custom sort method, you can probably make your query look like this:
SELECT * FROM yout_table ORDER BY your_column COLLATE utf8_german2_ci;
something like this might work:
$pl = new PageList(); $pl->sortBy( 'cvName COLLATE latin1_german2_ci');
but again, just untested theory..