Lot offering up his daughters is a commonly misinterpreted part of the story. It was meant to show how far you were obligated to go to protect guests in your house. It has been twisted into 'homosexuality is so bad it's better to allow your daughters to be raped than let anything gay happen.'
Either way it is pretty awful by today's standards, but not exactly the way a lot of people want it to be.