votes
    Preparing search index...

    Function scoresToRanking

    • Tiers of candidates, highest score first, ties within epsilon.

      Type Parameters

      • C extends string

      Parameters

      • scores: Record<C, number>
      • epsilon: number = config.EPSILON

      Returns C[][]