Route sort fix