The sword in the Bible can represent the Word of God.
Ephesians 6:17 ... and the sword of the Spirit, which is the word of God:
In the below passage the nations of the world, one after another are said to be slain by the sword and 'gone down' to the pit. In this passage God uses the word 'sword' 13 times. The number 13 identifies with the end of the world. And again, the sword is a picture of the Word of God.
Putting both together we find that at the time of the world's end (after 13,000 years of history) God's Word the Bible will be as a sword to slay all of the unsaved people of the earth and to bring them down to the pit of hell (the grave).
The 13 references to ‘sword’ in this account go along with the 13 times the word 'covenant' is used in Genesis chapter 17, and also the 13 times that the word 'interpretation' is used in Daniel chapter 2. All three words (sword, covenant, interpretation) relate to God's Word the Bible, as it is the Word of God that accomplishes the judgment of mankind on the last day.
Ezekiel 32
20 They shall fall in the midst of them that are slain by the sword: she is delivered to the sword: draw her and all her multitudes.
21 The strong among the mighty shall speak to him out of the midst of hell with them that help him: they are gone down, they lie uncircumcised, slain by the sword.
22 Asshur is there and all her company: his graves are about him: all of them slain, fallen by the sword:
23 Whose graves are set in the sides of the pit, and her company is round about her grave: all of them slain, fallen by the sword, which caused terror in the land of the living.
24 There is Elam and all her multitude round about her grave, all of them slain, fallen by the sword, which are gone down uncircumcised into the nether parts of the earth, which caused their terror in the land of the living; yet have they borne their shame with them that go down to the pit.
25 They have set her a bed in the midst of the slain with all her multitude: her graves are round about him: all of them uncircumcised, slain by the sword: though their terror was caused in the land of the living, yet have they borne their shame with them that go down to the pit: he is put in the midst of them that be slain.
26 There is Meshech, Tubal, and all her multitude: her graves are round about him: all of them uncircumcised, slain by the sword, though they caused their terror in the land of the living.
27 And they shall not lie with the mighty that are fallen of the uncircumcised, which are gone down to hell with their weapons of war: and they have laid their swords under their heads, but their iniquities shall be upon their bones, though they were the terror of the mighty in the land of the living.
28 Yea, thou shalt be broken in the midst of the uncircumcised, and shalt lie with them that are slain with the sword.
29 There is Edom, her kings, and all her princes, which with their might are laid by them that were slain by the sword: they shall lie with the uncircumcised, and with them that go down to the pit.
30 There be the princes of the north, all of them, and all the Zidonians, which are gone down with the slain; with their terror they are ashamed of their might; and they lie uncircumcised with them that be slain by the sword, and bear their shame with them that go down to the pit.
31 Pharaoh shall see them, and shall be comforted over all his multitude, even Pharaoh and all his army slain by the sword, saith the Lord GOD.
32 For I have caused my terror in the land of the living: and he shall be laid in the midst of the uncircumcised with them that are slain with the sword, even Pharaoh and all his multitude, saith the Lord GOD.