Preserving the order of status bar icons between restarts
You can try using Bartender, which keeps the order of the icons fixed (and does much more). It's a paid software, but it has a free trial and is available in Setapp.