Commit 4b2cb2b7 authored by wangsong's avatar wangsong

sort app

parent 081642d3
......@@ -92,7 +92,7 @@ public class StatisticsController {
statItem.setCount(count);
dataList.add(statItem);
});
dataList.sort((o1, o2) -> Long.valueOf(o2.getCount() - o1.getCount()).intValue());
dataList.sort((o1, o2) -> Long.valueOf(o1.getCount() - o2.getCount()).intValue());
List<StatItem> result = dataList;
if(topN != null && topN > 0){
if(topN < result.size()){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment