Keep mac desktops in place?
I hope I got your question right... You can prevent desktops from rearranging in System Preferences.
Open the Mission Control preference pane:
and unselect option "Automatically rearrange spaces based on most recent use":
The other options provide further customization.