static class Sortentities extends ROperator {
Sortentities() {super("sortentities");}
public void execute(DTState state) throws RulesException {
boolean asc = state.datapop().booleanValue();
RName rname = state.datapop().rNameValue();
RArray rarray = state.datapop().rArrayValue();
ArrayList<IRObject> array = rarray.arrayValue();
if(state.testState(DTState.TRACE)){
state.traceInfo("sortentities",
"length", array.size()+"",
"by", rname.stringValue(),
"arrayID", rarray.getID()+"",
asc ? "true" : "false");
}
REntity temp = null;
int size = array.size();