Added CLI argument parser for sort function