Mountain Lion spaces erratic behavior
You can uncheck "Automatically rearrange spaces based on most recent use" on the "Mission Control" tab in system preferences. This will leave the desktops in the expected order.