Function reverseComparator

  • Creates a new Comparator that imposes the reverse ordering of the given comparator.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • comparator: Comparator<T>

      the comparator function

    Returns Comparator<T>

Generated using TypeDoc