sort data in tabular format with sort with -k option

Let's sort output of ls - first 20 lines, 5th column - by file size, numerically:

ls -l /etc/ | head -n 20 | sort -k 5n
Sort by month (M - option, 6th column):
ls -l /etc/ | head -n 20 | sort -k 6M