can't you do `link_args = [t[1] for t in temp_files]`? or is there a reason for calling `sorted` here?