i dont think it has anything to do with tuning, but i think inverting it gives more cubic feet inside the box if space is limited, which i guess it could have something to do with tuning.
it can adjust the tuning. the same way putting more port inside a box can change the tuning. most people from my experience use inverting in 4thorder designs to help with cooling and space.
but overall it doesnt change the actual output, but it can alter the wave a little since it is having to go around the motor...etc. but its minute