private int compareTwoNumbers(Object obj1, Object obj2) {
    Number num1 = (Number) obj1;
    Number num2 = (Number) obj2;
    return Double.compare(num1.doubleValue(), num2.doubleValue());
  }
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