Guest User

Untitled

a guest
Nov 22nd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Arrays.sort( StaticObjects.getAllActiveSponsorlar,
  2. MobileContents.comparator);
  3.  
  4.  
  5.  
  6.  
  7. public class MobileContents {
  8.  
  9. public Integer SortOrderNo;
  10.  
  11.  
  12.  
  13. public static Comparator<MobileContents> comparator = new Comparator<MobileContents>() {
  14.  
  15. public int compare(MobileContents fruit1, MobileContents fruit2) {
  16.  
  17.  
  18. return fruit1.SortOrderNo - fruit2.SortOrderNo;
  19.  
  20.  
  21. }
  22.  
  23. };
  24.  
  25.  
  26.  
  27.  
  28.  
  29. }
Add Comment
Please, Sign In to add comment