Linux 'sort' command tricks
Sorting by string length
$ awk '{ print length(), $0 | "sort -n" }' /usr/share/dict/words