Could you not use CSS to position the buttons in another order?
For example, one of:
div.submit div { position: relative; }
/* you would need to define separate classes for the ok and cancel buttons */
div.submit div .okButton { position: absolute; top: 0px; left: 0px; }
div.submit div .cancelButton { position: absolute; top: 0px; left: 100px; /* or however wide your buttons are */ }
Alternatively:
div.submit div { float: right; }
I haven't tested either of these, but you should be able to do something similar to swap the button order.
Cheers, Roland