private int compareIfOneOrMoreNull(Object obj1, Object obj2) {
    if (obj1 == null) {
      return obj2 == null ? 0 : -1;
    } else {
      return 1;
    }
  }
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer
as the first argument is less than, equal to, or greater than the second.

@param obj1 the first object to be compared.
@param obj2 the second object to be compared.
@return a negative integer, zero, or a positive integer as the first argument is less than,
        equal to, or greater than the second.
@throws ClassCastException if the arguments' types prevent them from being compared by this
        Comparator.
geode-core/src/main/java/org/apache/geode/cache/query/internal/OrderByComparator.java