Change order on processing directives to match DOM order