Reorder command line arguments