Since order by elements can refer to projection elements, projection elements need to be handled before order by elements in the ValidatingVisitor