|
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: Thomas Martitz <thomas.martitz_at_fhtw-berlin.de>
Date: Thu, 19 Mar 2009 00:00:34 +0100 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 >> caused. > > 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 template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |