The story of Sodom was based on Genesis, chapter 19. Sodom was a city in the plains, south of Jerusalem, near the Dead Sea. Jerusalem was like the city of Sodom because Jerusalem had done the same things as they had done. Sodom with her daughters was guilty of pride, too much food, and too easy of a life style. Sodom did not aid the poor and the needy. There was no explanation here of all the abominable things mentioned in Genesis. However, Yahweh had removed them. He had destroyed them, when he found out about their behavior.
Jeremiah warns the Moabites to flee and save themselves. They should take off like a wild donkey in the desert. They had trusted in their treasures and fortresses, but to no avail. The local god of Moab, Chemosh, was going to be exiled along with his priests and attendants. Every town would be destroyed, since none would escape. Both the valleys and the plains would be destroyed. All the towns of Moab would fall and become a desolation with nobody living in them. Prepare some salt for Moab to help with her wounds.