fix sort of routers (and hardware type, it looks like)