bash grep and sort

Shell
grep <input> | sort
Source

Also in Shell: