public int getPositionForSection(final int section) {
        if (sections == null || sections.length == 0) {
            return 0;
        }
        final Integer position = mapFirstPosition.get(sections[Math.max(0, Math.min(section, sections.length - 1))]);
        return null == position ? 0 : position;
    }
detect whether all caches in this list belong to a series with similar names
main/src/main/java/cgeo/geocaching/ui/CacheListAdapter.java