@Override
    protected int compareCaches(final Geocache cache1, final Geocache cache2) {
        return getState(cache1) - getState(cache2);
    }
sort caches by state (normal, disabled, archived)
main/src/main/java/cgeo/geocaching/sorting/StateComparator.java