Remove sort where it shouldn't be.