protected Object[] evaluateSortCriteria(Object value){
  CompiledSortCriterion csc;
  Object[] array=null;
  if (orderByAttrs != null) {
    array=new Object[orderByAttrs.size()];
    Iterator orderiter=orderByAttrs.iterator();
    int i=0;
    while (orderiter.hasNext()) {
      csc=(CompiledSortCriterion)orderiter.next();
      Object[] arr=new Object[2];
      arr[0]=csc.evaluate(value,context);
      arr[1]=Boolean.valueOf(csc.getCriterion());
      array[i++]=arr;
    }
  }
  return array;
}

protected Object [ ] evaluateSortCriteria ( Object value ) { CompiledSortCriterion csc ; Object [ ] array = null ; if ( orderByAttrs != null ) { array = new Object [ orderByAttrs . size ( ) ] ; Iterator orderiter = orderByAttrs . iterator ( ) ; int i = 0 ; while ( orderiter . hasNext ( ) ) { csc = ( CompiledSortCriterion ) orderiter . next ( ) ; Object [ ] arr = new Object [ 2 ] ; arr [ 0 ] = csc . evaluate ( value , context ) ; arr [ 1 ] = Boolean . valueOf ( csc . getCriterion ( ) ) ; array [ i ++ ] = arr ; } } return array ; }
yogesh : this methods evaluates sort criteria and returns a arraylist of object [ ] arrays of evaluated criteria
