Java Collections.sort 排序

Collections.sort(list, (h1, h2) -> h1.getName().compareTo(h2.getName()));

 

posted @ 2020-04-30 12:22  正怒月神  阅读(171)  评论(0)    收藏  举报