code: protected int compareStaticOperands( QueryContext context,
                                           Comparison comparison1,
                                           Comparison comparison2 ) {
          Object value1 = getValue(context, comparison1.getOperand2());
          Object value2 = getValue(context, comparison2.getOperand2());
          return ValueComparators.OBJECT_COMPARATOR.compare(value1, value2);
      }
docs: Compare the values used in the two comparisons
  
  @param context the query context; may not be null
  @param comparison1 the first comparison object; may not be null
  @param comparison2 the second comparison object; may not be null
  @return 0 if the values are the same, less than 0 if the first comparison's value is less than the second's, or greater
  than 0 if the first comparison's value is greater than the second's