Fix comparisation conditions in route_cmp()