public int compare(SearchResultItem searchResultItem1, SearchResultItem searchResultItem2) {
            if (searchResultItem1.getSameHobbiesCount() > searchResultItem2.getSameHobbiesCount()) {
                return -1;
            } else if (searchResultItem1.getSameHobbiesCount() < searchResultItem2.getSameHobbiesCount()) {
                return 1;
            } else {
                return 0;
            }
        }