mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
sort: compatibility of human-numeric sort
Closes #1985. This makes human-numeric sort follow the same algorithm as GNU's/FreeBSD's sort. As documented by GNU in https://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html, we first compare by sign, then by si unit and finally by the numeric value.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
0K
|
||||
K
|
||||
844K
|
||||
981K
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
0K
|
||||
__
|
||||
__
|
||||
K
|
||||
^ no match for key
|
||||
_
|
||||
|
||||
+2
-1
@@ -9,4 +9,5 @@
|
||||
844K
|
||||
981K
|
||||
13M
|
||||
K
|
||||
K
|
||||
0K
|
||||
Reference in New Issue
Block a user