The argument to sort in reverse is -r. sort -r elements.dat sorts elements.dat in reverse alphabetic order, starting at the first character of each line.