'Ordered' in the Bible
All the reinforcements in Ai were ordered to chase them; they chased Joshua and were lured away from the city.
He hung the king of Ai on a tree, leaving him exposed until evening. At sunset Joshua ordered that his corpse be taken down from the tree. They threw it down at the entrance of the city gate and erected over it a large pile of stones (it remains to this very day).
They did as ordered; they brought the five kings out of the cave to him -- the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
At sunset Joshua ordered his men to take them down from the trees. They threw them into the cave where they had hidden and piled large stones over the mouth of the cave. (They remain to this very day.)