Rearrange fullscreen windows in macOS
Slide up on your trackpad with three fingers. On the top, you should see a bar containing Desktop and any other fullscreen windows you have opened. Drag those to rearrange them.
If you go back by sliding down with three fingers, you should find that the windows have been rearranged.