func (hp SpaceHostPort) Less(hp2 SpaceHostPort) bool {
	order1 := SortOrderMostPublic(hp)
	order2 := SortOrderMostPublic(hp2)
	if order1 == order2 {
		if hp.SpaceAddress.Value == hp2.SpaceAddress.Value {
			return hp.Port() < hp2.Port()
		}
		return hp.SpaceAddress.Value < hp2.SpaceAddress.Value
	}
	return order1 < order2
}
// Less reports whether hp is ordered before hp2
// according to the criteria used by SortHostPorts.
Less reports whether hp is ordered before hp2
according to the criteria used by SortHostPorts.
// Less reports whether hp is ordered before hp2 // according to the criteria used by SortHostPorts .
func (hp SpaceHostPort) Less(hp2 SpaceHostPort) bool {
	order1 := SortOrderMostPublic(hp)
	order2 := SortOrderMostPublic(hp2)
	if order1 == order2 {
		if hp.SpaceAddress.Value == hp2.SpaceAddress.Value {
			return hp.Port() < hp2.Port()
		}
		return hp.SpaceAddress.Value < hp2.SpaceAddress.Value
	}
	return order1 < order2
}
func ( hp SpaceHostPort ) Less ( hp2 SpaceHostPort ) bool { order1 := SortOrderMostPublic ( hp ) order2 := SortOrderMostPublic ( hp2 ) if order1 == order2 { if hp . SpaceAddress . Value == hp2 . SpaceAddress . Value { return hp . Port ( ) < hp2 . Port ( ) } return hp . SpaceAddress . Value < hp2 . SpaceAddress . Value } return order1 < order2 }
Less reports whether hp is ordered before hp2
according to the criteria used by SortHostPorts.
Less reports whether hp is ordered before hp2 according to the criteria used by SortHostPorts .