[development] Reverse iconv encoding for sorting of international arrays
Bèr Kessels
ber at webschuur.com
Thu Jan 11 14:41:45 UTC 2007
Hi,
tagadelic has a bug[1]: when it sorts the tags based on their name, it
compares two tags with strnatcasecmp. This is used to sort-order the array
with tags.
However, strnatcasecmp is not binary safe (grmmmbll), resulting in weird
clouds. One would expect "Drive | every | état | Factory | fear " instead,
état will be placed even before the tags starting with 'a'.
How is this dealt with normally, I can't beleive I am the first one to run
into this?
Is there a reverse for drupal_convert_to_utf8($data, $encoding), so that the
result is 7bit-safe and usable in strnatcasecmp?
Am I looking in the complete wrong direction?
[1]http://drupal.org/node/108001
--
Drupal, Ruby on Rails and Joomla! development: webschuur.com | Drupal hosting:
www.sympal.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20070111/4c811ce3/attachment.pgp
More information about the development
mailing list