protected Object[] evaluateSortCriteria(Object value) {
    Object[] array = null;
    if (orderByAttrs != null) {
      array = new Object[orderByAttrs.size()];
      int i = 0;
      for (CompiledSortCriterion csc : orderByAttrs) {
        Object[] arr = {csc.evaluate(value, context), csc.getCriterion()};
        array[i++] = arr;
      }
    }
    return array;
  }
This method evaluates sort criteria and returns an ArrayList of Object[] arrays of the
evaluated criteria.

@param value the criteria to be evaluated.
@return an Object array of Object arrays of the evaluated criteria.
geode-core/src/main/java/org/apache/geode/cache/query/internal/OrderByComparator.java