Sometimes the primary constituent is a female, sometimes it's a male, to make sure salutations are always consistent, it would be best to have the name order to pick up a rule about which gender is the first one to show up (when there are two different genders).