sort wierdness

Jakub Jelinek jakub at redhat.com
Fri Nov 5 12:54:03 UTC 2010


On Fri, Nov 05, 2010 at 12:47:18PM +0000, Neil Bird wrote:
> 
>    I am seeing sort treat '@' specially; in particular, it wanders around 
> the sort order depending upon the rest of the input line.  Anyone have an 
> explanation?  I guess it's something to do with locale, but the input 
> strings affecting it as well make no sense to me.

Just look into your vocabulary, it is sorted similarly.  In most locales
various characters are considered only in second or even later passes
through strings, when strings without those characters are otherwise
equal.

If you want ASCII sorting, just use LC_COLLATE=C.

	Jakub


More information about the users mailing list