• Creates a comparator for objects of type T by using a selector to pick a primitive value.

    Type Parameters

    • T

    Parameters

    Returns Comparator<T | null>