On Linux shell the result of echo -e "arrays2 2\narrays 2\narrays3 2" | sort is
arrays 2
arrays2 2
arrays3 2
and the result of echo -e "arrays2 28\narrays 28\narrays3 28" | sort is
arrays2 28
arrays 28
arrays3 28
Why in the second case the string arrays2 28 appears on first line.
Is this a bug, or I miss something?
I tried this on RHEL4 and Ubuntu 11.04.
Thanks.
sortdoesn't behave like this.echo $LANG