public void sort() {
        Collections.sort(hops, new Comparator<HopSpec>() {
            public int compare(HopSpec lhs, HopSpec rhs) {
                return lhs.getName().compareTo(rhs.getName());
            }
        });
        Collections.sort(routes, new Comparator<RouteSpec>() {
            public int compare(RouteSpec lhs, RouteSpec rhs) {
                return lhs.getName().compareTo(rhs.getName());
            }
        });
    }
Sorts the hops and routes of this table by name. This is useful for generating a stable config for testing.
messagebus/src/main/java/com/yahoo/messagebus/routing/RoutingTableSpec.java