The people of Ammon came out and lined up for battle at the city gate, while the kings who had come were by themselves in the field.