I am trying to sort a ditto call by title, however the results using special chars like ö or any other odd character are appearing before they should. For example I have something like this:
Ötsch
Astro
Böheim
Bartel
My charset is utf-8. Is there a way for me to correct this?
BTW I am using Ditto 2.0.2 that came with my install of 0.9.6.
-
☆ A M B ☆
- 24,524 Posts
I may be off-base here, but I suspect that this has to do with the collation configuration of your database.
http://dev.mysql.com/doc/refman/5.0/en/charset-general.html
I think another way to do the same thing would be to just add the following line as the first line of the customsort() function:
That should prevent customsort() from altering the data (assuming that it’s already in the proper order).
Bob
That was a great recommendation, sorting of the ö is correct now. I will need to keep this in mind with other customsort situations. Seriously, you guys rock!!!
It is so nice to finally look at the page and see the correct sort order, what a relief.
I have the same problem with the Norwegian Æ Ø Å, and none of the suggestions above did any good. Could there be another way to do this?
I think, thererfor I am! But what I am, and why...?
Sorry for not telling. They come after Z, that is in the end of the alphabet. Like this: Q R S T U V W X Z Æ Ø Å .
I think, thererfor I am! But what I am, and why...?