How to reproduce:
1. Open the attached project “IN-132596”
2. Ensure that Visual Studio or JetBrains Rider is selected as the External Script Editor in the Preferences window
3. In the Project window, select the “Assets/AddressableAssetsData/AddressableAssetSettings“ asset
4. In the Inspector, open the “More Items” menu and select “Edit Script”
5. In the opened code editor, select “Attach to Unity”
6. In the Editor, select “Enable debugging for this session”
7. In the code editor, open the “Find” window and navigate to the “OnBeforeSerialize()” method
8. Add a breakpoint on the line containing “m_GroupAssets.Sort” inside of the “OnBeforeSerialize()” method
9. Focus on the Editor and wait for script compilation to finish
10. Ensure that the “Assets/AddressableAssetsData/AddressableAssetSettings“ asset is selected inside of the Project window
11. Observe the code editor while selecting the option to continue past the breakpoint
Actual result: Groups are sorted indefinitely while the AddressableAssetSettings is displayed in the Inspector
Expected result: Groups are only sorted when they have been modified
Reproducible with: 2.2.2 (6000.0.35f1), 2.8.1 (6000.5.0a7)
Reproducible on: Windows 11
Not reproducible on: No other environments tested