change _sorted_args output to tuple