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?
Al Le schrieb:
> On 18.03.2009 23:53, Thomas Martitz wrote:
>>> I can't understand what you mean. What break?
>> Your general rule was in SVN a few days ago. Look at FS#10029 what it
> No, if the rule were implemented correctly, the files would be sorded
> correctly as well. It must have been a flaw in the implementation, not
> in the idea.
And doing it correctly means special casing leading zeros at the very
beginning. The implementation looks at every series of digits
atomically, so each has it's own leading zeros. We can only ignore the
very first leading zeros.
Received on 2009-03-19
Page was last modified "Jan 10 2012" The Rockbox Crew