At some point in the near future I'll be adding in a per-language sort
order adjustment, so that various sorted lists should turn out in more
or less correct order for a change. :)
I'd appreciate pointers to descriptions of various languages' sorting
requirements so I can try to get them right.
I don't know if we can handle Japanese and Chinese sensibly, but
alphabetic languages should generally work fairly well by making a
munged copy of the string such that, eg, if "ó" sorts as the same as
"o" we just change it to "o"; if "ó" sorts after "o" (as in Polish
IIRC), it becomes "o~", which should always sort after any "o" and
before any "p" in a binary ASCII-order string sort.
Simple replacements should generally work, though we can also do more
complicated replacements of certain sequences of characters.
-- brion vibber (brion @ pobox.com)
order adjustment, so that various sorted lists should turn out in more
or less correct order for a change. :)
I'd appreciate pointers to descriptions of various languages' sorting
requirements so I can try to get them right.
I don't know if we can handle Japanese and Chinese sensibly, but
alphabetic languages should generally work fairly well by making a
munged copy of the string such that, eg, if "ó" sorts as the same as
"o" we just change it to "o"; if "ó" sorts after "o" (as in Polish
IIRC), it becomes "o~", which should always sort after any "o" and
before any "p" in a binary ASCII-order string sort.
Simple replacements should generally work, though we can also do more
complicated replacements of certain sequences of characters.
-- brion vibber (brion @ pobox.com)