value=VariableInterpreter.getVariable(pc,Caster.toCollection(value),pathToSubElement);
}
arr[i]=new SortRegister(i,value);
}
ExceptionComparator comp=null;
// text
if(sortType.equalsIgnoreCase("text")) comp=new SortRegisterComparator(isAsc,false);
// text no case
else if(sortType.equalsIgnoreCase("textnocase")) comp=new SortRegisterComparator(isAsc,true);
// numeric
else if(sortType.equalsIgnoreCase("numeric")) comp=new NumberSortRegisterComparator(isAsc);
else {
throw new ExpressionException("invalid sort type ["+sortType+"], sort types are [text, textNoCase, numeric]");
}
Arrays.sort(arr,0,arr.length,comp);
ee=comp.getPageException();
if(ee!=null) {
throw ee;
}