By default, your workspaces are sorted the way you ordered them (by drag and drop). You can also arrange them according to their name or frequency of use.
To do this, go to Preferences → Search and click a pop-up button near Sort Workspaces. Choose one of three options and you’ll see your workspaces sorted.
Alternatively, you can do it using a