1 Collections.sort(data, new Comparator<TXCartData>() {
2 @Override
3 public int compare(TXCartData lhs, TXCartData rhs) {
4 int n1=Integer.parseInt(lhs.rowId);
5 int n2=Integer.parseInt(rhs.rowId);
6 if (n1>=n2){
7 return 1;
8 }
9 return -1;
10 }
11 });