coreutils
[Top][All Lists]
Advanced

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

Is natural sort supported?


From: Peng Yu
Subject: Is natural sort supported?
Date: Tue, 8 Oct 2019 01:36:12 -0500

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 reversed.
1G13
1.02

-- 
Regards,
Peng



reply via email to

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