7901fe8625
An optimization introduced in Prefab mode currently changes the relative ordering of children, causing stale QModelIndex variables to still be referenced and crash the Editor sporadically. This change is theoretically a bit slower, but still much faster than the pre-optimization times. Co-authored-by: Shirang Jia <shiranj@amazon.com> Co-authored-by: Shirang Jia <shiranj@amazon.com>