import org.apache.commons.lang.builder.CompareToBuilder; Collections.sort(outboundNotices, new Comparator<OutboundNoticePrintRespVO>() { @Override
public int compare(OutboundNoticePrintRespVO o1, OutboundNoticePrintRespVO o2) {
return new CompareToBuilder()
.append(o1.getOnhWaveRoundNo(), o2.getOnhWaveRoundNo())
.append(o1.getOnhWaveAssortCellNo(), o2.getOnhWaveAssortCellNo())
.toComparison();
}
});