I was playing with sort in Ubuntu and saw a strange thing:
Sorting (sort test.txt):
d
auto_design
tst
auto_tuning
autosport
Gives:
auto_design
autosport
auto_tuning
d
tst
But sorting
d
auto_design
auto_tuning
autoaport
Gives
autoaport
auto_design
auto_tuning
d
tst
If it sorts lexicographical why "a", "b", "c" are less than "_", but letters after "c" are "bigger" than "_"? In the first case it breaks auto_* words with autosport word which does not contain _ and it seems strange to me.
Thanks in advance.
LC_ALLandLC_COLLATEsettings.