Added --sort option to allow ordering of print results.