code: func CompareChainHashPriority(chain1, chain2 []*x509.Certificate) int {
  	hp1 := HashPriority(chain1)
  	hp2 := HashPriority(chain2)
  	return hp1 - hp2
  }
docs: // CompareChainHashPriority ranks chains with more current hash functions higher.