Fix sortest to be compatible with cmdline arguments.