Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: RB Directory listing order
From: Bryan VanDyke (bryan314_at_yahoo.com)
Date: 2004-08-02


Gajdos_at_metatem.net wrote:

> On Mon, 2 Aug 2004 at 06:55, Bryan VanDyke wrote:
>
>
>>The sorting is called Natural Order Sort. I've used it in a custom
>>version of rockbox I use for myself. I used a library (strnatcmp.c,
>>strnatcmp.h ) found at http://sourcefrog.net/projects/natsort/ I had to
>>tweak it a little to work on rockbox and work the way I wanted it too.
>>
>>In rockbox I replaced strncmp, strncasecmp in the compare function in
>>tree.c.
>
>
> Do you have the possibility to make a diff of your tweaks, or maybe even
> submit them as a patch?
> /JG
> _______________________________________________
> http://cool.haxx.se/mailman/listinfo/rockbox
>

I zipped up the modified files and they can be downloaded here.

http://www.ivandyke.com/sort.zip

I think tree.c is from a daily build from the end of last week. I don't
remember the when I did a cvs check out. I only modified 2 lines anyways
and added an #include for the .h file.

Bryan :)

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa