Like everyone else has already said, it really depends on what the comments were. If he was just being a homophobic asshole, then it would be filed under bullying, especially if you told him to stop.
However, if it steps into the sexual portion, then we get into sexual harassment, which is a whole other situation.
Also, your friends are wrong. Telling someone to shut up if they were being an asshole is not a bad thing. Besides, they were rude first, you were defending yourself.