In MacDonald v AG for Scotland; Pearce v Governing Body of Mayfield School, the House of Lords holds that a homosexual who is dismissed or harassed because of his or her sexual orientation must be compared with a homosexual of the opposite gender for the purposes of establishing direct sex discrimination.