In place sorting


#1

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()


#2

Try to use java.util.Collections.sort.


#3

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 :)