def FREAD_RANKING_BY_ESSS(decoy):
  """Returns a comparable object (a tuple of scores) used for ranking a given decoy.
  
  Bigger values will be ranked higher."""
  return (decoy.score, -decoy.anchor_rmsd_open, -decoy.internal_rmsd, -decoy.iterations)