Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



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?

From: Paul Louden <paulthenerd_at_gmail.com>
Date: Wed, 18 Mar 2009 17:58:18 -0500

Al Le wrote:
>
> Yes, it's a simple rule, and from this point of view I could very well
> live with it. But it puts "04" before "3" which wasn't the intention
> of the natsort in the beginning (if I understand correctly). For
> example, Nautilus puts "03" before "4".

In my understanding, the intention of "natsort" was to fix 1, 10, 2, 3,
4, 5, 6. It can still do this while respecting intentional leading
zeros, and my described "simple rule" still fixes that problem just fine.
Received on 2009-03-18


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa