//Otherwise, if there's an order by clause, wrap the result into
//an OrderedValueSequence. OrderedValueSequence will compute
//order expressions for every item when it is added to the result sequence.
if (resultSequence == null) {
if(orderSpecs != null && !fastOrderBy)
{resultSequence = new OrderedValueSequence(orderSpecs, in.getItemCount());}
}
if (groupedSequence==null){
if (returnExpr instanceof BindingExpression) {
if (resultSequence == null) {
resultSequence = new ValueSequence();