Collections.sort(list, (o1, o2) -> {
if(o1.getFlexAgentId().equals(template.getFlexAgentId())
&& !o2.getFlexAgentId().equals(template.getFlexAgentId())){
return 1;
}else if(WeiBoGuideConstant.isWeiboChannel(Long.valueOf(template.getFlexAgentId()))
&& o1.getFlexAgentId().equals(WeiBoGuideConstant.WEIBO_ALL_CHANNEL.toString())
&& !o2.getFlexAgentId().equals(WeiBoGuideConstant.WEIBO_ALL_CHANNEL.toString())){
return 1;
}else if(o1.getFlexAgentId().equals("0")
&& !o2.getFlexAgentId().equals("0")){
return 1;
}else {
return -1;
}
});
Collections.sort(invalidAdList, Comparator.comparing(BillUrlResponse::getHdStartTime).reversed());