I have two external displays

The display on the right side has 4 spaces.
The display on the left side has 3 spaces.
However, the order of display group in the menu bar is swapped

I would expect the four spaces group to be on the right and the 3 spaces group to be on the left