Both are correct. It's certainly true that the teacher ordered boys to sit down (Sentence 2). Nevertheless, the standard answer is that the teacher ordered the boys to sit down.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.