I wrote yesterday that "the sort utility program (written
by Mike Haertel) that came with my Red Hat LInux 6.2 (obtained about April 2000)
and that is part of the GNU textutils 2.0a (December 1999) seems to have a
fundamental flaw". I have found that the problem is more basic than I
realised.
For example, sorting the numbers below as single numeric strings (eg by
'sort -n data' or 'sort -k 1n data') outputs sorts that are hopelessly
wrong.
5613
393 4439 1447 5635 8646 8954 4000 4605 6261 9448 8460 9900 407 4439 1744 Please find a test file ('data.txt') with this data
attached. I have tested the problem on another computer that has Red Hat
6.2 and the same version of the GNU text utilities with the same result.
Again I look forward to your response.
Dr Craig A
Martin |
5613 393 4439 1447 5635 8646 8954 4000 4605 6261 9448 8460 9900 407 4439 1744