Red Hat Linux sort command does not sort.

I'm trying to do an ascii sort of the following 4 lines:

# C - Code: E - event; P - practice; M - Meeting; V - Travel
# :10,$!sort -t'|' +2.0
|   |1999|10| 2|A|11:45|Sat|Q|Oakland
|   |1999|10|10|A| 7:45|Sun|Q|Oakland

Running this data through sort yields:

# :10,$!sort -t'|' +2.0
|   |1999|10|10|A| 7:45|Sun|Q|Oakland 
|   |1999|10| 2|A|11:45|Sat|Q|Oakland
# C - Code: E - event; P - practice; M - Meeting; V - Travel

I have found that if I unset environment variables LC_ALL and LANG, that
the sort reverts to correct bevavior.

Could it possibly be true that there is no real way to get an ASCII sort?
That cannot possibly be the intention. Is the LC_COLLATE file damaged?

The behavior is perhaps similar to "-d", but I can't get any other UNIX
sort command to come up with the same result with any combination of
-b and -d.

I am writing a wrapper around sort, but of course that makes me fear I'll
break other programs.

- Chuck Collins
[EMAIL PROTECTED]

    % cat /etc/issue
    Red Hat Linux release 6.1 (Cartman)
    Kernel 2.2.12-20 on an i686

Reply via email to