add support for command line args in sorting