Dear Ray:
Your interpretation is incorrect. Isaiah is just comparing the Israelites ungodly ways with that of Sodom and Gomorrah hundreds of years earlier.
It is not being taken out of context. God is definitely speaking to the Israelites.
In the Love of the Lord,
Frank and Mary