code: def hcons(xmrs):
      
      return [
          HandleConstraint(hi, reln, lo)
          for hi, reln, lo in sorted(xmrs.hcons(), key=lambda hc: var_id(hc[0]))
      ]
docs: Return the list of all HandleConstraints in *xmrs*.