For a long period I thought the default behavior of the sort
program was using ASCII order. However, when I input the following lines into sort
without any arguments:
#
@
I got:
@
#
But according to the ASCII table, #
is 35 and @
is 64. Another example is:
A
a
And the output is:
a
A
Can anybody explain this? By the way, what is 'dictionary-order' when using sort -d
?
Best Answer
Looks like you are using a non-POSIX locale.
Try:
and then
sort
.info sort
clearly says: