Genisis 18: 20. And the Lord said, Because the cry of Sodom and Gomorrah is great, and because their sin is very grievous;
Genisis 18:32. And he said, Oh let not the Lord be angry, and I will speak yet but this once: Peradventure ten shall be found there. And he said, I will not destroy it for ten's sake. 33. And the Lord went his way, as soon as he had left communing with Abraham: and Abraham returned unto his place.
Homosexuallity was not why they were evil it was proff they were evil.