add function to keep arguments in a vector of c-style strings
Use more efficient sort by forwarding sort to qsort