Sort routes