kotlin.comparisons.nullsFirst

nullsFirst

fun <T : Any> nullsFirst(
    comparator: Comparator<in T>
): Comparator<T?>

Platform and version requirements: JVM

fun <T : Any> nullsFirst(
    comparator: Comparator<in T>
): Comparator<T?>

Platform and version requirements: JS

Extends the given comparator of non-nullable values to a comparator of nullable values consider