Those who believe the sins of Sodom were exclusively sexual sins need to consider this scripture:
Ezekiel 16:49: Behold, this was the iniquity of thy sister Sodom, pride, fulness of bread, and abundance of idleness was in her and in her daughters, neither did she strengthen the hand of the poor and needy.
It is clear from reading the account of Abraham and Lot that Sodom was not all about sexual sin. Lot “pitched his tent toward Sodom,” (Genesis 13:12) a symbol that he favored the things of the world over spiritual matters. Abraham, on the other hand, went to Hebron and immediately built an altar to the Lord (Genesis 13:18).
Over time, it has become clear that Abraham was known for his generosity, his charity and his humility. Lot pitching his tent toward Sodom showed that he did not care that the people of Sodom were unwelcoming, haughty, prideful and uncharitable. We cannot discount the fact that Sodom was evil precisely because the people did not care about the poor and were prideful (just as people in the Book of Mormon were often guilty of the same sin).
But those who would like the sins of Sodom only to be about lack of charity face a conundrum: the scriptures and the teachings of modern-day prophets make it clear that the sins of Sodom were also sexual in nature.
And they were haughty, and committed abomination before me: therefore I took them away as I saw good.
Yes, the people of Sodom were prideful, but they were also guilty of sexual abominations. The Church Topical Guide references these sins.