menegatti
categories.map { ... }.sortedWith(compareBy({ Math.abs(it.amount) }, { //something else }))
morozov