Not really attribute order in XML is arbitrary. You could add some code to calibre to force it, similar to what is done with <meta name="cover" content="xxx">
calibre uses lxml and that de-facto preserver attribute order. so you first delete the existing attributes and then reset them in the proper order.
|