@Override
    public int compareTo(Object rhs) {
        return (negative ? -1 : 1);
    }
An infinity value is always less than or greater than.
container-search/src/main/java/com/yahoo/search/grouping/request/Infinite.java