Prevent order setting vs. form submission race condition

If the js runs slow for any reason the admin form can submit before the order of inlines has been set.

This can be simulated by setting a breakpoint inside the current version of the modified click function and clicking save. Although the debugger will hit the breakpoint the page will almost immediately reload since the form continues submitting and the order will not be setting.  Setting a breakpoint inside the modified version will work since the default is prevented and the form isn't resubmitted until after ordering has been set.

 An alternative method of fixing this would be to have the order update when inline fields are moved.