Rockbox mail archive
Subject: Re: how is strnatcmp aka "Interpret numbers while sorting" supposed to sort?
Re: how is strnatcmp aka "Interpret numbers while sorting" supposed to sort?
Thomas Martitz wrote:
>
> Ok, I've implemented ignoring very leading zeros now, and fixed
> FS#10031, in my local repo. It could be committed, I think. It seems
> the consensus is reached.
>
> Alternatively we can also think about ignoring chars like . and _ (and
> possibly more) in the beginning of a file name (e.g. .rockbox is
> sorted under r). Just an idea. It doesn't really add complexity, but
> would definitely do more than the setting advertises. But, this is
> also something windows/nautilus/more do.
I've uploaded the patch to FS#10030.
Received on 2009-03-19
Page was last modified "Jan 10 2012" The Rockbox Crew
|