External sort fix