A general rule of thumb is to put distortion effects first in the chain, and time-based effects like delay and chorus at the amplifier end.
Wah is a kind of EQ, which can go anywhere in the path. You will find that placement does make a big difference in the final sound, but there is no such thing as 'right' or 'wrong'. Feel free to experiment. And let your ears be your guide.