liminal
04/12/2020, 4:44 PMenum class MyType { A, B, C }
data class MyTypeWrapper(val id: String, val type: MyType)
// existing code to order types based on some business rules
fun mapToOrderedTypeList(unordered: List<MyType): List<MyType> { return ... }
How do I order a list of `MyTypeWrapper`s based on order of their `type`s?rbares
04/12/2020, 4:52 PMliminal
04/13/2020, 1:26 AM