code: func (th treeHeap) Less(i int, j int) bool {
  	if th[i].Weight() == th[j].Weight() {
  		return th[i].Value() >= th[j].Value()
  	} else {
  		return th[i].Weight() < th[j].Weight()
  	}
  }
docs: // Weight compare function