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:

enter image description here

and unselect option "Automatically rearrange spaces based on most recent use":

enter image description here

The other options provide further customization.