Use CharArray.sort() instead of Arrays.sort(arr)

Proprietary

java.util.Arrays.sort(arr: char[]) is JVM-only; arr.sort() is the multiplatform Kotlin extension.

org.openrewrite.kotlin.migrate.UseCharArraySort$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseCharArraySort$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.