I've been getting into some early Christian / Biblical textual analysis and history and apparently the people who wrote the Sodom story would not have understood the concept of homosexuality as an orientation, their conception was entirely act-based and focused on penetrator vs penetrated.
So this story, the primary anti-gay biblical story, is better understood as showing the Sodomites violating Guest Right, and Lot being such a good host that he expends resources (gives away his daughters to be raped) to keep his guests safe.
Just goes to show how cultural context is important in reading texts.