cover_sorting_algorithm