“All its males.” The Hebrew uses the word for “male” here, not “man,” which can mean “person; human.”
“the mouth of the sword.” The idiom, “the mouth of the sword” is used to show great destruction, as if the sword was eating its victims (see commentary on Josh. 6:21).