Trying to delete an order (such as a test sandbox order) results in the error message "Sorting number of a complete order cannot be changed." on top of the delete confirmation popup.

Clicking Delete again results in 'the page cannot be found' error:

...but deletes the order page.
Then errors start to happen. ->
- On successive orders , order numbers are being repeated.

- At least on localhost, successive orders, after confirming paypal (in my tests), are redirected to success page BUT returning the same exception "Sorting number of a complete order cannot be changed."
So, as this is within a try / catch clause, apparently merx()->completePayment($_GET); fails.
BUT the order appears in the panel orders page, and its payment show as complete.
It fails, but it completes.
Thank you