@cowwoc/requirements - v4.0.12
    Preparing search index...

    Function sortByDecreasingRank

    • Returns a comparator that sorts encodings based on the number of colors that they support, from the most to the least number of colors.

      Parameters

      Returns number

      a negative number if first supports more colors than second. 0 if the encodings support the same number of colors. A positive number if first supports fewer colors than second.