7/21/2008

The comparison function of linux sort

What is the comparison function of linux sort?

The default sort order depends on the value of LC_COLLATE.
If LC_COLLATE is set to C, sorting will be in ASCII order.
If LC_COLLATE is set to en_US, sorting is case insensitive
except when the two strings are otherwise equal and one has
an uppercase letter earlier than the other. Other locales
will have other sort orders.

0 comments: