kotlin.comparisons.nullsLast

nullsLast

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

Platform and version requirements: JVM

fun <T : Any> nullsLast(
    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 considering 登录查看完整内容