排序列表<元组>从最高到最低 [英] sort a List<Tuple> from highest to lowest
本文介绍了排序列表<元组>从最高到最低的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
List<Tuple<String, int[], int>>
我想对列表
进行排序 int
从最高到最低。
I want to sort the List
by the int
from highest to lowest.
推荐答案
java。 util.Collections.sort(list,Comparator)
你需要写一个 Comparator< Tuple< String,int [] ,int>>
这篇关于排序列表<元组>从最高到最低的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文