Sorting with recurrent comparison errors