In place sorting

Is there a way to do in-place sorting in kotlin without using JVM libraries?

It’d be nice if I could sort in place rather than: arrayList.sortBy(comparator).toArrayList()

Try to use java.util.Collections.sort.

Ahh, I didn't see that there was a java.util.Collections for the JS side!  For some reason I wasn't getting autocomplete in IDEA for it until I imported it manually. Thanks :)