Sort an ArrayList by primitive boolean type
Another way to go is: Collections.sort(abc, new Comparator<Abc>() { @Override public int compare(Abc abc1, Abc abc2) { return Boolean.compare(abc2.isClickable,abc1.isClickable); } });
Another way to go is: Collections.sort(abc, new Comparator<Abc>() { @Override public int compare(Abc abc1, Abc abc2) { return Boolean.compare(abc2.isClickable,abc1.isClickable); } });