coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is natural sort supported?


From: Assaf Gordon
Subject: Re: Is natural sort supported?
Date: Tue, 8 Oct 2019 01:23:04 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

(please use "reply-all" or "reply-group" to keep the coreutils@ mailing list in the loop)

On 2019-10-08 1:09 a.m., Peng Yu wrote:
Then, the option name causes misunderstand. -V is actually
--debian-version.

Or simply "--version-sort" as it is now.

The natural order is
plain and simple, just as what is explained below, which can be
implemented by a few lines of python code.

At the risk of arguing over semantics,
I'll say again: there is no "one correct" natural order standard,
and therefore it is not "plain and simple" because there is no just "one" such order.

It can certainly be there there are some specific implementation
of 'natural sort' that are simple.

https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/

So my question is whether natural order as in the above URL is supported?

No.

and note that even the above blog writes:
"... Don't let Ned's clever Python ten-liner fool you. Implementing a natural sort is more complex than it seems ... ".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]