The Impact of Element Ordering on LM Agent Performance