Fix transition from sort to sort-half