Abstracted sort_with_host_data from various sort implementations