sort

Sort files or output of commands. Often used in pipes:

cut -d : -f1 /etc/passwd |sort # regular sort
awk -F : '{ print $4 }' /etc/passwd | sort -n # numerically sort