[Resolved] [Plugin: Sort Query Posts] Sorting Non-English Characters
Thanks for such a great plugin!
I’m running into a slight issue where accented Spanish characters are not sorting correctly.
For example, I have four titles that should sort like this (advertir, añadir, averiguar, avisar), but instead they sort like this (advertir, averiguar, avisar, añadir).
Everything I’m reading suggests that Spanish should sort correctly without much issue. My character set is utf8. I’ve tried DB_COLLATE (in wp-config.php) as default (”), as utf8_general_ci, and utf8_spanish_ci. I also tried changing the “strnatcasecmp” to “strcasecmp” in sort-query-posts.php. All combinations are giving the same output.
Also interesting is that I’m using Relevanssi as my search plugin, and it’s treating “n” and “ñ” as the same.
If you want to take a look at the site, it’s located at: http://www.spanishconjugation.net.
I’m more than willing to hack away at figuring this out, but any directional advice would be greatly appreciated.
- The topic ‘[Resolved] [Plugin: Sort Query Posts] Sorting Non-English Characters’ is closed to new replies.