code: func (r *PeerResolver) Resolve(peers []fab.Peer) (fab.Peer, error) {
  	filteredPeers := r.blockHeightResolver.Filter(peers)
  
  	var orgPeers []fab.Peer
  	for _, p := range filteredPeers {
  		if p.MSPID() == r.mspID {
  			orgPeers = append(orgPeers, p)
  		}
  	}
  
  	if len(orgPeers) > 0 {
  		// Our org is in the list. Use the default balancer to balance between them.
  		logger.Debugf("Choosing a peer from [%s]", r.mspID)
  		return r.loadBalancePolicy.Choose(orgPeers)
  	}
  
  	logger.Debugf("Choosing a peer from another org since there are no peers from [%s] in the list of peers", r.mspID)
  	return r.loadBalancePolicy.Choose(filteredPeers)
  }
docs: // Resolve uses the MinBlockHeight resolver to choose peers but will prefer peers in the given org.