getting routes sorted