Why do :
$ echo -e 'Q\ns\nV' | sort
outputs
Q
s
V
without changing the order of my list (taking in account the lower/uppercase ?)
|
Why do :
outputs
without changing the order of my list (taking in account the lower/uppercase ?) |
|||
|
|
|
In most languages, Sorting depends on localisation settings ( You could use: If you want to sort in the order of your own language, but having uppercase letters before lowercase ones, you could do:
That would cause lower-case letters to be sorted after every other character.
That would only work in locales where collating elements are single characters only. |
|||||||||
|
|
The POSIX or C locale will make
|
|||
|
|