sort_next_heap_element
first_sorted_entry = sort_next_heap_element(repair);
sort_next_heap_element(repair);