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?
Al Le wrote:
>> Well, we're currently using an "existing" algorithm. One that *may*
>> be used in other FLOSS (I don't know, and haven't investigated). To
>> me, the two sides of the argument are basically "do we want to use it
>> as-is, such that our sorted lists look the same as lists in other
>> applications, or do we want to define our own rules for 'natural'
>> list sorting?"
> I'd opt for the latter, because it's easy to understand.
"It sorts in this strange way we've made up" is easier to understand
than "It sorts like Nautilus, FileBrowserX and FileBrowserY which you
may already use?"
Received on 2009-03-18
Page was last modified "Jan 10 2012" The Rockbox Crew