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
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
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
> 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
(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,
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
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
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
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