if(orders!=null && orders.size()>0) {
int len=orders.size();
for(int i=len-1;i>=0;i--) {
ZOrderBy order=(ZOrderBy) orders.get(i);
ZConstant name=(ZConstant)order.getExpression();
rtn.sort(name.getValue().toLowerCase(),order.getAscOrder()?Query.ORDER_ASC:Query.ORDER_DESC);
}
if(maxrows>-1) {
rtn.cutRowsTo(maxrows);
}
}