Add command-line option for sorting.