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: Mike Holden <rockbox_at_mikeholden.org>
Date: Thu, 19 Mar 2009 15:22:59 -0000 (UTC)
Thomas Martitz wrote:
> Sounds to me that you're better off using ascii sort.
Well that is what I currently use, but there's no reason why natural
sorting shouldn't be appropriate if it works in the right way!
> Windows does it in the same way as nautilus and other major file
> browsers. It ignores leading zeros.
Well it doesn't completely ignore them, they have some significance (see
my other email a short while ago).
-- Mike Holden http://www.by-ang.com - the place to shop for all manner of hand crafted items, including Jewellery, Greetings Cards and GiftsReceived on 2009-03-19