no hard and fast right way...
I usually run comp, eq, dirt, filters before an amp, and time based effects in the loop or after (delay, reverb).
Other effects, it depends...phaser, flanger, chorus, ring mod, pitch shift, synth usually after the amp. sometimes I use phaser, flanger or chorus before the amp; sometimes eq after the amp or at the end. I experiment with these.
noise gate usually after whatever is noisiest.
Rickenbacker 4003 -> Zoom B3 -> Bose L1 II