Rockbox mail archiveSubject: Re: how is strnatcmp aka "Interpret numbers while sorting" supposed to sort?
Re: how is strnatcmp aka "Interpret numbers while sorting" supposed to sort?
From: Al Le <al.le_at_gmx.de>
Date: Wed, 18 Mar 2009 23:28:08 +0100
On 18.03.2009 23:12, Paul Louden wrote:
Yes, but it doesn't treat the case "1, 2, ..., 10" in the way many users
> Our "natural" sorting is entirely a mishmash of rules as to how numbers
It wouldn't be such a mishmash if we'd implement just that simple rule
> For example, is "1.001" one point zero zero one,
Not in natsort
> or disk one track one,
Not this in natsort. In natsort it would be "the number 1", a dot, "the
> or one thousand and one?
No since it assume a country specific separator.
> If we make up our own non-standard way, yes, we can describe it. We can
Actually we wouldn't need a very long description if the rule would be
> I don't see why "we can describe it" is a reason to use our own method -
But, as you pointed out above, such a complicated logic requires a long
Page was last modified "Jan 10 2012" The Rockbox Crew