That's a really good question. As a rule of thumb, you should always stabilize first because any pre-processing may confuse the Optical Flow algorithm. Make sure to select Magic Sharp from the Quality popup in the Post Processing group (it defaults to fast). You are going to need all this extra precision in the next step which will be UpRez. All color adjustments should be done last.