Here the word "chariots" is a metonym for the soldiers driving the chariots. AT: "all the men driving chariots" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Here "sword" represents the swords and other weapons that the soldiers used in battle. This can be stated in active form. AT: "Barak and his soldiers killed Sisera's whole army with their swords" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-activepassive]])