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: Regarding natural sorting (FS#8314)

Re: Regarding natural sorting (FS#8314)

From: Thomas Martitz <thomas.martitz_at_fhtw-berlin.de>
Date: Mon, 09 Mar 2009 21:40:47 +0100

Magnus Holmgren wrote:
> Hi,
>
> When I looked at the natural sorting code (from FS#8314) the other
> day, I noticed one small thing that seems a bit odd to me (and I
> didn't see it mentioned in a quick read-through on the tracker):
> should it really ignore differences in whitespace the way it does?
>
> As an example, the following files (one file as one space in the name,
> the other two have three):
>
> A b.txt
> A c.txt
> A b.txt
>
> get sorted like this with natural sorting enabled:
>
> A b.txt
> A b.txt
> A c.txt
>
> I can understand ignoring extra whitespace in front of numbers, but
> I'm not sure about this... :)
>
> Magnus

Besides that people who have leading whitespaces in their filenames
should burn in hell, yes, that's intended behavior...and I don't see why
it should behave differently.
Received on 2009-03-09


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