I'm not an instructor but..
I did all my training up to ME IR at an airfield with a relatively long runway. I was taught it was always flaps up then set power.
I've recently joined a club at an airfield with a short grass strip and was surprised to hear it's SOPs to set power then raise flaps.
I can see reasons why both are better depending on the situation to be honest.