How do I change the order flag settings in the DOM?