Parthiv Mistri
12/13/2019, 10:38 AMArrayList<Model>
in which Model
has an Int
value between 1 to 10
. I need to sort them in Descending order.
Can anyone help me to do this?
ThanksEdgars
12/13/2019, 10:42 AMlist.sortedByDescending { it.value }
Edgars
12/13/2019, 10:43 AMEdgars
12/13/2019, 10:44 AMsortByDescending
Parthiv Mistri
12/13/2019, 10:47 AM