Sodom was burned.
Then the LORD rained upon Sodom and upon Gomorrah brimstone and fire from the LORD out of heaven; (Genesis 19:24)
The people of Nineveh repent in sackcloth and ashes
But let man and beast be covered with sackcloth, and cry mightily unto God: yea, let them turn every one from his evil way, and from the violence that is in their hands. (Jonah3:8)
And God saw their works, that they turned from their evil way; and God repented of the evil, that he had said that he would do unto them; and he did it not.(Jonah3:10)
These two city both were evil and satanic, but they had different outcome finally. Because these two city used different attitudes to face God's reminder.
God is righteous, he never does the wrong things.