So I don't know if this has been addressed before: I merged six big epubs, and the resulting one has all the xhtmls files in the wrong order. The resulting table of contents is messed up too. I suspect it's got something to do with the fact that the xhtml files have the same names (this hasn't happened with another merge I did, two books where the files had different names).
Ty