Bostock v. Clayton County

The courts have struggled with the wording in Title VII for a couple of decades. Title VII clearly prohibits discrimination based on sex. Does that mean Title VII prohibits discrimination based on sex orientation? If an employer terminate someone because he is gay, how is that not discrimination based on sex?

The challenge is that