Sorting with a delay