They do attack the first person they see, the person which the game imagines to be first in their line of sight. So that's why if I play a mage (or another weak melee character) I tend to let someone else lead the party, Minsc or Khalid for example, so they can soak up the damage.
------------------
Later,