Are kotlin collections sort methods stable?


#1

Can’t find any docs regarding stability of sorting methods. It seems JVM sorting is stable since it relies on java api which uses stable sorting for all non primitives.
JS is relying on browser implementation of Array.sort which is stable only on some browsers (IE, firefox)

Just spent a day fixing chrome only bug :slight_smile:


#2

We haven’t documented the stability yet, because we hadn’t decided what should it be, see this issue: https://youtrack.jetbrains.com/issue/KT-12473