In what order will enemies be attacked if the selected target dies mid-turn?

In Bravely Second: End Layer, in what order will characters attack enemies if the initial target of their attack becomes untargetable mid-turn (ie from dying)?
For example, suppose you are in a battle against enemies A, B, C, and D (in that order on the enemy roster list). You then command all of your party to attack enemy A. After a hit from your first party member, enemy A dies. However, there are still other attack commands from your other party members ready to go. Which of enemies B, C, and D will be selected as the target for those party members' attacks?
I would have assumed that the next enemy in the enemy roster (enemy B in the above example) would be selected as the target, but it doesn't appear to be the case. In fact, from my observations it looks like it is random - but I cannot be sure.
Is there a set order for which enemy would be selected? Or is it random? I would really like to know this since often there are situations where one enemy has a buff such as Reflect or Wall, and having the game choose to attack them without me specifically wanting to attack them would be detrimental.
Pictures about "In what order will enemies be attacked if the selected target dies mid-turn?"



Shadow of War Combat Tips TO BECOME UNSTOPPABLE (Middle Earth Shadow of War Tips \u0026 Tricks)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Amina Filkins, Amina Filkins, Amina Filkins, Amina Filkins