Here the "sword" represents war. To be "for the sword" means that God has appointed them to die in war. Alternate translation: "those whom I have appointed to die in war should go to die in war" (See: [[rc://en/ta/man/jit/figs-metonymy]] and [[rc://en/ta/man/jit/figs-explicit]])
This means that Yahweh has appointed these to die because of famine, and these words speak of dying by famine as if "famine" were a place that people can go to. Alternate translation: "Those whom I have appointed to die by famine should go and die by famine" (See: [[rc://en/ta/man/jit/figs-metaphor]] and [[rc://en/ta/man/jit/figs-explicit]])