[Bug 1284] Contacts are not sorted.

Alan Cox alan at lxorguk.ukuu.org.uk
Fri Mar 21 17:17:58 CET 2008


> All respect to old unix gurus, but don't names usually start with a capital
> letter, do they? The additional value of this option would be very low. Or
> at least hide it from the user interface so that it doesn't fool average
> users.

The C library provides proper locale based string ordering functions.
Those do all the needed work and you don't want to avoid them as the
order of [aA][bB] is the least of your problems, in many languages the
letter order varies for sorting, and often there are rules about accented
name sorting and multiple character letters (eg A B C CH D DD E F FF G NG
H ...)

Use strcoll() and avoid the pain. The work has been done, once.

Alan



More information about the openmoko-devel mailing list