Sorting
A region of text can be sorted within emacs. For example, if you want to sort the lines of a region so that the third words of the lines are in alphabetical order, define the region then type
M-x sort-fields 3
See the info documentation for more details and options.