generally it is up to you to mix and match, experiment with different layout / different sounds
time function pedals (delay, loopers) are generally the last of pedals just before the amp, or even better still inside the amp's effects loop. I would imagine a delay before a distortion to be chaotic and noisy...
overdrive before distortion would drive the distortion harder, giving more saturation, the typical usage for od. but if you want a more effective volume boost you can put the od behind the distortion and adjust the volume/level