y2p
y2p

Reputation: 4941

sort a List<Tuple> from highest to lowest

List<Tuple<String, int[], int>>

I want to sort the List by the int from highest to lowest.

Upvotes: 5

Views: 3182

Answers (1)

TofuBeer
TofuBeer

Reputation: 61546

java.util.Collections.sort(list, Comparator)

You will need to write a Comparator<Tuple<String, int[], int>>

Upvotes: 8

Related Questions