Simulates sorting with errorful comparisons