I want to sort my ArrayList using a boolean type. Basically i want to show entries with true first. Here is my code below:
ArrayList
true
Abc.java
Another way to go is:
Collections.sort(abc, new Comparator() { @Override public int compare(Abc abc1, Abc abc2) { return Boolean.compare(abc2.isClickable,abc1.isClickable); } });