qry.sort(col.getColumn(),col.isDirectionBackward()?Query.ORDER_DESC:Query.ORDER_ASC);
}
}
private void executeSingle(PageContext pc, Select select, Query qr, QueryImpl target, int maxrows, SQL sql,boolean hasOrders) throws PageException {
ValueNumber oTop = select.getTop();
if(oTop!=null) {
int top=(int)oTop.getValueAsDouble();
if(maxrows==-1 || maxrows>top) maxrows=top;
}
int recCount=qr.getRecordcount();