|
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: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Thu, 19 Mar 2009 15:04:51 +0100 Mike Holden wrote: > Maybe leading zeros should only be stripped if another digit follows them? > > I use names like 00RockFaves.m3u, 00ClassicRock.m3u for playlists that I > have created (as opposed to original artist albums), and the leading > zerozero is deliberately there to sort them at the top. That's an interesting observation. I believe leading zeroes are treated like whitespace in the current code, but in this case I think that the final zero should be kept. Linus Received on 2009-03-19 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |