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: Thomas Martitz <thomas.martitz_at_fhtw-berlin.de>
Date: Wed, 18 Mar 2009 23:37:23 +0100

Al Le schrieb:
>
>> For example, is "1.001" one point zero zero one,
>
> Not this in natsort. In natsort it would be "the number 1", a dot,
> "the number 1". The interpretation of the numbers is beyond the scope.
Natsort will sort this before 1.002 and before 1.01. It does this,
because it does not ignore leading zeros.
>
>> or one thousand and one?
>
> No since it assume a country specific separator.

Nobody assumes a separator. This is just a dot, a non-digit character.
Any non-digit character will act as a separator.
Received on 2009-03-18

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy