I have two linux machines, on which unix sort seems to behave differently. I believe I\'ve narrowed it down to the treatment of the underscore character.
If I run
You can set LC_COLLATE to traditional sort order just for your command:
LC_COLLATE
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.