Emacs: Sort Lines
Sort lines in text selection.
Reverse lines order in text selection.
Sort lines by a specific column, as number. For example: Type Ctrl+u, then 2, then Alt+x
sort-numeric-fields. This will sort the line by the 2nd column, and the fields are compared as numbers.
Sort lines by a specific column, as string. (“fields” are separated by space or tabs. First field is 1.)
View Special File