Firing someone on the basis of their sexual orientation is illegal in many countries and considered a form of discrimination.