bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort documentation


From: Eric Blake
Subject: Re: sort documentation
Date: Fri, 23 Feb 2007 22:20:55 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Chuck Simmons on 2/23/2007 8:00 PM:
> 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)

Consider upgrading.  The documentation for the latest stable version, 6.7,
does exactly that:

$ sort --help | tail -n 6
*** WARNING ***
The locale specified by the environment affects sort order.
Set LC_ALL=C to get the traditional sort order that uses
native byte values.

Report bugs to <address@hidden>.

> 
> 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.

On a machine using the C locale.  This is a FAQ; read
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
for ideas on how to set your locale to something that sorts the way you want.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF38s284KuGfSFAYARArNgAJ9fXgkyAnpZPsnewnuLp2Nq4HaeFQCgohls
1a9TqW2w7wiGRkhjSjypW+o=
=J5Jl
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]