I am trying to sort the category arraylist with Collections.sort method but have no luck with it.
Collections.sort
Here is my code:
public class Categories i
Collections.sort(yourListHere,new Comparator() { @Override public int compare(Categories lhs, Categories rhs) { //your sort logic here return 0; } });
Hope this helps.