[Bug 1377899] Re: sort by size

Hans Ginzel hans at matfyz.cz
Mon Oct 6 12:52:07 UTC 2014


** Description changed:

- Please add an option, let say -N, which would modify numerical sorting
- by accepting (and correctly sorting) size units (k,kB,kiB,M,...,G,...)
- even when separated by space (common, non-breakable, thin, ...,
- http://en.wikipedia.org/wiki/Whitespace_character).
+ Please add more white space symbols between number and unit in sort -h.
+ See http://en.wikipedia.org/wiki/Whitespace_character for Unicode
+ (utf-8) encoding in locale.
+ 
+ For example
+ echo -e "1 Gb\n1 MB" |sort -h
+ should return
+ 1 MB
+ 1 Gb
+ where between '1' and 'MB' is Unicode's U+202F narrow no-break space (HTML:  ).

** Summary changed:

- sort by size
+ sort by size (-h) add whitespace between number and unit

** Tags added: whitespace

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1377899

Title:
  sort by size (-h) add whitespace between number and unit

Status in “coreutils” package in Ubuntu:
  New

Bug description:
  Please add more white space symbols between number and unit in sort
  -h. See http://en.wikipedia.org/wiki/Whitespace_character for Unicode
  (utf-8) encoding in locale.

  For example
  echo -e "1 Gb\n1 MB" |sort -h
  should return
  1 MB
  1 Gb
  where between '1' and 'MB' is Unicode's U+202F narrow no-break space (HTML:  ).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1377899/+subscriptions



More information about the foundations-bugs mailing list