homosexual discrimination

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

The courts have been struggling with the meaning of “sex” in Title VII for a couple of decades. Title VII prohibits discrimination based on “sex.” Does that include discrimination based on sexual orientation? In Oncale v. Sundowner Offshore Services, Inc., 523 US 75, 118 S.Ct. 998, 140 L.Ed.2d 201 (1998), the court tried to