Fixes the relation_extension for order so it properly reverts the inverse statement precedence in versions after 4.0.0