added feature to sort all_friends by gender