Sort predictions by route_id