compareTo

expect fun String.compareTo(other: String, ignoreCase: Boolean = false): Int(source)

Compares two strings lexicographically, optionally ignoring case differences.

Since Kotlin

1.2
actual fun String.compareTo(other: String, ignoreCase: Boolean = false): Int(source)

Compares two strings lexicographically, optionally ignoring case differences.

actual fun String.compareTo(other: String, ignoreCase: Boolean = false): Int
actual fun String.compareTo(other: String, ignoreCase: Boolean): Int