Fixes the relation_extension for order so it properly reverts the invers...

...e statement precedence in versions after 4.0.0