@Override
    public String getSortableSection(@NonNull final Geocache cache) {
        switch (getState(cache)) {
            case 1:
                return stateDisabled;
            case 2:
                return stateArchived;
            default:
                return stateActive;
        }
    }
sort caches by state (normal, disabled, archived)
main/src/main/java/cgeo/geocaching/sorting/StateComparator.java