public int compare()

in src/main/java/org/apache/sling/discovery/impl/cluster/voting/VotingHandler.java [78:90]


        public int compare(VotingView o1, VotingView o2) {
            if (o1 == o2) {
                return 0;
            }
            if (o1 == null && o2 != null) {
                return 1;
            }
            if (o2 == null && o1 != null) {
                return -1;
            }
            // now both are non-null
            return (o1.getVotingId().compareTo(o2.getVotingId()));
        }