Rockbox mail archiveSubject: proper directory sorting
proper directory sorting
From: Frederic Devernay <frederic.devernay_at_m4x.org>
Date: Mon, 27 Feb 2006 18:27:50 +0100
Are there any plans to implement proper directory sorting in rockbox?
for some reason, I expect "Sébastien Schuller" to be placed before "Syd
Barrett", not after as it is now.
Of course, full unicode sorting (i.e. implementing full strcoll()) is
almost impossible, but in the 0000-00FF range, a simple lookup table
will do the job easily. This means that instead of returning *s1-*s2 (in
./firmware/common/strcmp.c), we just have to return
strncmp would also have to be reworked to use that lookup table only for
latin1 characters (i.e. at odd places, iff the character before was \000).
Received on 2006-02-27