How to reproduce:
1. Create a new Unity project
2. In the Hierarchy window create two GameObjects (command+shift+N)
3. Select both GameObjects and drag them over between Directional Light and Main Camera in Hierarchy window
4. Undo changes (command+Z)
5. Redo changes (command+shift+Z)
6. Observe the Hierarchy window
Expected result: Both GameObjects position in the Hierarchy window can be redone
Actual result: Only one GameObject returns to its previous order in the Hierarchy window
Reproducible with: 2021.2.0a9, 2021.3.12f1
Not reproducible with: 2020.3.40f1, 2021.2.0a8, 2022.1.20f1, 2022.2.0b11, 2023.1.0a14
Tested on: macOS Monterey 12.5.1