> Am I missing something here ???
[...]
> <wtenhave@berend:3> /bin/cat /tmp/P | /bin/sort -n | /usr/bin/uniq
> 5
> 1
> 4
> 2
The most likely candidate is a broken locale file. textutils as of
version 2.0 and later user specified locale data to affect collating
sequences to handle native language differences. When this is set
non-ASCII sorting as per local collating conventions is used. This is
mostly likely due to you setting LC_ALL to something such as possibly
en_US.
You should set LC_ALL to POSIX and try your test again.
export LC_ALL=POSIX # If you use bash, ksh, sh, etc.
setenv LC_ALL POSIX # If you use a csh, tcsh.
If sort behaves as you expect then the problem is with the locale
data on the system.
Bob