@Override
    public int compare(final Repository lhs, final Repository rhs) {
        final boolean lRecent = contains(lhs);
        final boolean rRecent = contains(rhs);
        if (lRecent && !rRecent) {
            return -1;
        }
        if (!lRecent && rRecent) {
            return 1;
        }

        final int order = CASE_INSENSITIVE_ORDER.compare(lhs.name(),
                rhs.name());
        if (order == 0) {
            if (id == lhs.owner().id()) {
                return -1;
            } else if (id == rhs.owner().id()) {
                return 1;
            } else {
                return CASE_INSENSITIVE_ORDER.compare(
                        lhs.owner().login(), rhs.owner().login());
            }
        } else {
            return order;
        }
    }
Is the given repository id in the recent list

@param id
@return true if in recent list, false otherwise
app/src/main/java/com/github/pockethub/android/ui/repo/RecentRepositories.java