Unix sort treatment of underscore character

You can set LC_COLLATE to traditional sort order just for your command:

env LC_COLLATE=C sort tmp

This won’t change the current environment just the one in which the sort command executes.
You should have the same behaviour with this.

Leave a Comment