Here the word "sword" represents the soldiers of an enemy army who attack with swords. Alternate translation: "Army, go through the land" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Yahweh speaks of killing people and animals as if it were cutting them off, like a person would cut a branch from a tree. Alternate translation: "kill both man and beast in the land" (See: [[rc://en/ta/man/translate/figs-metaphor]])