... there is a difference in a person's gender and sex. (or so she's learnt from her psychology classes)
gender refers to one's sexual orientation, while sex is your physiology.
for example, you could say a gay man's sex is male, but his gender is female.
so use it right, kids! (as if you'll ever need it, but just so you know.)