sort text file by first column
Dec 29, 2022
-n here means "sort numerically", as opposed to lexically.
If you wanted to sort by the second column, for example, you might do:
%!sort -n -k2
To reverse the sort, use
--reverse. See the man page for more.