A lot of its personal preference but there are some general rules, octavers (especially analog ones) are very fussy and need as unaffected a signal as possible I much prefer mine at the front of the chain, but some people like it after dirt.
Compressor is a matter of preference, most people put it at the very start or the very end, depending on what you want to use it for at the start will limit the signal going to your pedals, this will affect some of them quite dramatically, it'll improve analog octavers. At the end will limit the signal spike from your pedals, very handy for wild filters, stops them blowing up your speakers.
Modulation effects chorus should got toward the end, time based effects like delay and reverd should at the very end. Filter and dirt is another preference thing, they should both go in the middle, between pitch shifting and modulation/delays, but the order is a preference thing, i like dirt>filter because it gives a lovely synth quack, but filter>dirt is a lot more subtle, personally i think it's too subtle, the dirt destroys the filter unless it's a mild/transaprent OD.
My general order is:
Pitch Shifting > Dirt > Filter > Modulation > Time based