for sorting Map.Entry values, you can use Collections.sort(list,Map.Entry.comparingByValue()); This is easy than to write a custom comparator.
確定! 回上一頁