`minlex` is for numbers. Are you always sorting symbols here? If so, `sorted_args = min(i, j, key=default_sort_key)`  would be more appropriate. If anything other than symbols can be encountered then ` = list(ordered([i, j]))` is appropriate.