Regan Russell
12/05/2017, 9:33 PMSean Corfield
12/05/2017, 9:37 PMadam-mcneilly
12/05/2017, 9:48 PMSean Corfield
12/05/2017, 9:52 PMname
with a
for popular
items and z
for not popular
items and sort on that combined string.ilya.gorbunov
12/05/2017, 9:54 PMsortWith(compareBy<YourItemType> { if (it.popular) 0 else 1 }.thenBy { it.name })
Sean Corfield
12/05/2017, 10:09 PMRegan Russell
12/06/2017, 12:06 AM