kz
03/23/2018, 2:11 PMClassCastException because the generated comparator does not implement Serializable.
We talked about this in a thread here: https://kotlinlang.slack.com/archives/C4W52CFEZ/p1521752444000647
and the resulting ticket is here for those interested: https://youtrack.jetbrains.com/issue/KT-23398