kotlin-stdlib / kotlin.text / toSortedSet toSortedSet JVM 1.0 fun CharSequence.toSortedSet(): SortedSet<Char>(source) Returns a new SortedSet of all characters.