[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort documentation
From: |
Chuck Simmons |
Subject: |
sort documentation |
Date: |
Fri, 23 Feb 2007 19:00:18 -0800 |
The fact that 'sort' doesn't sort strings in alphabetical order should be
documented in the man page in the 'Bugs' section. An obvious option should be
provided to be able to sort strings in alphabetical order.
The man page version is
sort (coreutils) 5.2.1 April 2006 SORT(1)
The sort version is
sort (coreutils) 5.2.1
For example, a subsequence of my sorted list looks like
1 North America>United States>Hawaii>Oahu>Laie
1 North America>United States>Michigan>Kentwood
1 North America>United States>Ohio>North Canton
1 North America>United States>Ohio>Norton
1 North America>United States>West Virginia>South Charleston
2 North America>Canada>British Columbia>Golden
2 North America>Canada>Manitoba>Beausejour
2 North America>United States>Hawaii>Kauai>Princeville
The above was produced with sort "-k 2,2 -k1,1n" Notice that the "United
States" strings are not adjacent, nor are the Hawaii strings within the united
states. This used to work long ago and far away, probably on a Solaris box.
- sort documentation,
Chuck Simmons <=