returnAST = orderByClause_AST; } finally { traceOut("orderByClause");
orderByClause_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(ORDER_BY,"order by")).add(orderByClause_AST)); currentAST.root = orderByClause_AST; currentAST.child = orderByClause_AST!=null &&orderByClause_AST.getFirstChild()!=null ? orderByClause_AST.getFirstChild() : orderByClause_AST; currentAST.advanceChildToEnd();
	public final void orderByClause() throws RecognitionException, TokenStreamException {				traceIn("orderByClause");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST orderByClause_AST = null;						match(LITERAL_order);			match(LITERAL_by);			orderSpecList();			astFactory.addASTChild(currentAST, returnAST);			if ( inputState.guessing==0 ) {				orderByClause_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				orderByClause_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(ORDER_BY,"order by")).add(orderByClause_AST));				currentAST.root = orderByClause_AST;				currentAST.child = orderByClause_AST!=null &&orderByClause_AST.getFirstChild()!=null ?					orderByClause_AST.getFirstChild() : orderByClause_AST;				currentAST.advanceChildToEnd();			}			orderByClause_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = orderByClause_AST;		} finally { // debugging			traceOut("orderByClause");		}	}