Plants being mixed up is actually not a bad thing, and it may not be necessary to move them.
Here’s the deal, if you have for example tomatoes next to basil or onions, the tomato pests will not like the basil or onions. If you have tomatoes next to tomatoes, the pest will attack one and spread to the next tomato. So it’s kinda like a mini quarantine to help your plants.
However, the taller plants should be located on the Northern side so they don’t shade the other sun loving plants. On the other hand, in the case of lettuce and other so called cool crops, they benefit from some afternoon shade.
So I would only adjust the plants that may need more sun and leave them as is for the rest. YMMV
For future refenrence and further inquiry , I believe that it is called "Companion planting", frequently used in organic gardening .