Why your MacBook desktop Spaces keep rearranging themselves and how to stop it

Wait 5 sec.

Disable a Mission Control-specific setting to keep Spaces from switching.