Forbidden patterns for ordered automata