public static int getSortedPos(final List<String> list, final String text) {
        return getSortedPos(list, s -> s, text);
    }
returns for a list and a text the position to insert the text into the list to keep it sorted
main/src/main/java/cgeo/geocaching/utils/TextUtils.java