'Confirm To' on Sales Order Entry

I'm trying to figure out why, when selecting a 'Confirm To' value from the lookup list of contacts for that customer, sometimes it populates the contact's name in the 'Confirm To' box, and other times it populates the customer contact's code.  Anyone know what I mean?