Be more robust to unusual orderings in the parsetree