Re: Is natural sort supported?

2019-10-08 Thread Assaf Gordon
Hello, On 2019-10-08 12:36 a.m., Peng Yu wrote: The following example shows that version sort is not natural sort. Is natural sort supported in by `sort`? There is no such thing as "THE correct natural sort" order... $ printf '%s\n' 1G13 1.02 | LC_ALL=C sort -k 1,1V # The result order

Re: Is natural sort supported?

2019-10-08 Thread Peng Yu
Then, the option name causes misunderstand. -V is actually --debian-version. And it is not natural order (there is no such thing like extension handling with natural order). The natural order is plain and simple, just as what is explained below, which can be implemented by a few lines of python

Re: Is natural sort supported?

2019-10-08 Thread Peng Yu
Some part of the manual is also poorly written. "1.1.2 Origin of version sort and differences from natural sort" After reading the above section, I am still not clear what is the difference. It is better to show some examples to illustrate the difference. On 10/8/19, Peng Yu wrote: > Then, the

Re: Is natural sort supported?

2019-10-08 Thread Peng Yu
> 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. I don't think there is no commonly accepted "natural sort". For example, I found another one that

Re: Is natural sort supported?

2019-10-08 Thread Assaf Gordon
(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,

Is natural sort supported?

2019-10-08 Thread Peng Yu
Hi, The following example shows that version sort is not natural sort. Is natural sort supported in by `sort`? $ printf '%s\n' G . | LC_ALL=C sort -k 1,1V . G $ printf '%s\n' 1G 1. | LC_ALL=C sort -k 1,1V 1. 1G $ printf '%s\n' 1G13 1.02 | LC_ALL=C sort -k 1,1V # The result order should have been

Can natural sort support be added?

2019-10-08 Thread Peng Yu
Hi, Since natural sort is provided in a few languages (as mentioned in the Wikipedia page). Can it be supported by `sort` besides just version-sort? https://en.wikipedia.org/wiki/Natural_sort_order -- Regards, Peng

Re: Can natural sort support be added?

2019-10-08 Thread Kaz Kylheku (Coreutils)
On 2019-10-08 00:47, Peng Yu wrote: Hi, Since natural sort is provided in a few languages (as mentioned in the Wikipedia page). Can it be supported by `sort` besides just version-sort? https://en.wikipedia.org/wiki/Natural_sort_order This page has no precise specific definition of natural

bug#37650: Fw: Possible bug.

2019-10-08 Thread Paul Eggert
On 10/7/19 9:12 PM, George R Goffe wrote: The intent of the configure directive "--enable-gcc-warnings" that states, "turn on many GCC warnings (for developers; best with GNU make)" is, I guess, to warn developers of situations they need to be aware of. Sorry, it looks like I misunderstood