Better ordering of clauses for compiling clause bodies