In the second update of Array B should be
$$B=\langle,,,,,2,,3,,,\rangle$$
Element 3 should be at index 8 instead of 7.
and the third update should be
$$B=\langle,,,1,,2,,3,,,\rangle$$
This inconsistency affects subsequent steps and misrepresents the algorithm’s stability.