[wp-hackers] get_tag alphabetical sorting not working correctly in Danish
Lisa Risager
lillefod at gmail.com
Wed Dec 14 18:19:22 UTC 2011
We have 3 special characters in Danish: æ, ø and å.
When using get_tag the letters æ and ø sorts alphabetically, but å is
placed before a in the alphabet (should be the last letter).
I'm using this code:
$tags = get_tags();
$html = '<div class="post_tags">';
foreach ($tags as $tag){
$tag_link = get_tag_link($tag->term_id);
$html .= "<li><a href='{$tag_link}' title='{$tag->name} Tag'
class='{$tag->slug}'>";
$html .= "{$tag->name}</a></li>";
}
$html .= '</div>';
echo $html;
from http://codex.wordpress.org/Function_Reference/get_tags
which works fine except for the alphabetical sorting of the letter å.
I am using WordPress 3.3 da_DK
There's a trac for french accents:
http://core.trac.wordpress.org/ticket/15652
Anyone who can point me in the right direction for hacking this bug?
Lisa
Webkonsulent Lisa Risager
Viktoriagade 17, 3. mf.
1655 København V
p: (+45) 6160 4664
e: lisa at lisarisager.dk
s: lisa.risager
b: http://www.lisarisager.dk
c: http://www.stickleback.dk
More information about the wp-hackers
mailing list