Using Views Tagadelic I have a problem with the sort order of tags when it comes to special characters. I set "Taxonomy: Term Name" as sort criteria in views which shows my tags in an alphabetical order. But: When there are tags starting with a special character (like ä, ö, ü, ß; talking about a website in german), those are listed before all the others. Example:
Categories: birnen, ananas, äpfel, obst, überfluss, absinth
Sort order (should be): absinth, äpfel, ananas, birnen, obst, überfluss
Sort order (is): äpfel, überfluss, absinth, ananas, birnen, obst
(I am not sure if german umlaute should be treated as the respective vowel+e (ä->ae, ö->oe, ü->ue) or just as a vowel (ä->a, ö->o, ü->u) when it comes to sorting. Both work.)
This doesn't happen when I create a view with a list of nodes ordered by title. For that reason I think it's a Views Tagadelic problem, not a Views problem.
Comments
Comment #1
szy commentedIt happens to me too, in Polish characters. Any fix for this?
Szy.
Comment #2
momper commented+1
Comment #3
pgorecki commentedTry replacing the _tagadelic_sort_by_title in tagadelic.module to the following:
Comment #4
szy commentedWorks like a charm :]
Dzięki :)
Szy.
Comment #5
yan commentedThe following seems to work with german language:
But this looks like a very specific (language based) way to me. Does anybody have an idea how to solve this more generally?
Comment #6
kecinzer commentedI have the same problem in czech language.
I mean, that to this can be applied ascii file from pathauto module.
Comment #7
Bèr Kessels commentedhttps://github.com/berkes/tagadelic/issues/20
Comment #8
szy commented@Ber, 'closed'?
Where exactly have you found a solution (patch ready for apply,
dev release) for this issue?
Szy.
Comment #9
smitty commentedI've got the same problem here.
Replacing the _tagadelic_sort_by_title in tagadelic.module to the code in #5 solves the sorting-problem.
BUT: Now I get lots of errors:
Notice: Undefined index: in _tagadelic_sort_by_title() (Zeile 315 von mydomain\sites\all\modules\tagadelic\tagadelic.module).
Notice: Undefined index: in _tagadelic_sort_by_title() (Zeile 316 von mydomain\sites\all\modules\tagadelic\tagadelic.module).
Line 315/316 are:
$c1 = $arr[mb_substr($a->name,$i,1)];
$c2 = $arr[mb_substr($b->name,$i,1)];
Does anybody know how I can avoid these errors?
Comment #10
Bèr Kessels commentedhttps://github.com/berkes/tagadelic/issues/20
Please. Do not re-open. Tickets are moved to github and managed there. Here is why.