1实体:实现Comparable接口 、并复写compareTo方法
implements Comparable<HttpSendAndReviceVo>
public int compareTo(HttpSendAndReviceVo arg0) {
return this.getOrder().compareTo(arg0.getOrder());// this.getOrder()是要排序的字段
}
2list 排序处理
Collections.sort(httpList);//httpList为实体对象list