sort.1posix -rg
sort, merge, or sequence check text files
-r     Reverse the sense of comparisons.

The treatment of field separators can be altered using the options:
source manpages: sort