Collation
‘normal’ collation
echo $'a\nA\n1\n@\n~'
a
A
1
@
~
==> letters get sorted ‘correctly’ (casing does not impact )
but digits and symbols
C collation
echo $'a\nA\n1\n@\n~' | LC_COLLATE=C sort
1
@
A
a
~
==> digits and symbols get sorted ‘correctly’
but letters sorted casing does not impact
echo $’b\na\nA\n1\nB\n@\n~’
custom collation possible
wanted :
==sorting digits & symbols as in C , but letters as in locale==