My experience is that pretty much all missile units will fire first at the enemy that's closest to them, unless you specifically order them to attack another unit.