Collections.sort(productInfos, new Comparator<ProductInfo>() {
@Override
public int compare(ProductInfo arg0, ProductInfo arg1) {//
return -arg0.getCrtime().compareTo(arg1.getCrtime());
}
});
@Override
public int compare(ProductInfo arg0, ProductInfo arg1) {//
return -arg0.getCrtime().compareTo(arg1.getCrtime());
}
});