summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorMichael Speer <knomenet@gmail.com>2009-04-27 14:51:29 +0100
committerPádraig Brady <P@draigBrady.com>2009-05-26 14:49:17 +0100
commit159faba1376ffd5a46fe4bbc780d85dd3e502cea (patch)
tree26c0be6ee86af0609569bdc7af0999e03b1e2b3e /NEWS
parentc45c51fe97193898f3909dcf5e4c0e117ab239a2 (diff)
downloadcoreutils-159faba1376ffd5a46fe4bbc780d85dd3e502cea.tar.xz
sort: new --human-numeric-sort option to sort KiB MB etc.
* NEWS: Document the new option * doc/coreutils.texi (sort invocation): ditto * src/sort.c (main): handle the new --human-numeric-sort option (-h). (human_numcompare): A new function to compare SI and IEC suffixes before falling back to the standard --numeric comparison. (find_unit_order): A new helper function to find the order of magnitude of a number string as determined by its suffix. (check_mixed_SI_IEC): A new helper function to exit with error if both SI and IEC suffixes are presented. * tests/misc/sort: Add 8 tests to test the new functionality. * THANKS: Update
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3af06e420..29b09a08f 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,9 @@ GNU coreutils NEWS -*- outline -*-
chroot now accepts the options --userspec and --groups.
+ sort accepts a new option, --human-numeric-sort (-h): sort numbers
+ while honoring human readable suffixes like KiB and MB etc.
+
* Noteworthy changes in release 7.4 (2009-05-07) [stable]