There's a parallelism in Genesis 6:9-9:23 and Genesis 18:23-19:37.
Noah-Flood-Wine > Lot-Sodom-Wine.
Both stories involve a righteous man who was saved from divine cataclysm that destroyed the wicked and then fell prey to wickedness himself through the abuse of alcohol.
https://soilfromstone.blogspot.....com/2016/10/themati