这里有很多种方法对List进行排序,a56爆大奖在线娱乐总结了三种方法,但多种实现。 1.对基础类型排序 方法一: 调用sort方法,如果需要降序,进行反转: List<int> list = new List<int>(); list.Sort();// 升序排序 list.Reverse();// 反转顺序 方
posted on 2021-09-26 17:46  bin790302901  阅读(270)  评论(0编辑  收藏  举报