lib: correction to add_or_replace_descriptor_and_sort()