您的位置:首页 > 编程语言 > Java开发

Collections.sort

2013-10-05 20:09 288 查看
Collections.sort(newList, new Comparator<PropertyValue>(){
public int compare(Value p1, Value p2) {
final int count1 = p1.getOrderId();
final int count2 = p2.getOrderId();
return (count1 < count2 ? 1 : -1);
}
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Java Collections sort