I was able to reproduce this issue with a commercial epub2 book (Crichton, Michael - Dragon Teeth, Harper Collins, 2017). I simply opened the book and selected Tools > Index > Create Index.
The original order of the first 4 XHTML files in the Book Browser was:
cover.html
title.html
copyright.html
contents.html
original spine
after selecting Create Index the Book Browser order was changed to:
contents.html
cover.html
title.html
copyright.html
updated spine
I.e., the Book Browser display doesn't match the actual spine. Also the spine reference of the item that was moved to the first position (<itemref idref="toc"/>) was deleted. The cover image spine entry (<itemref idref="my-html-cover" linear="yes"/>) was also deleted.
content.opf contained the following guide section:
Code:
<guide>
<reference type="cover" title="Cover" href="Text/cover.html"/>
<reference type="toc" title="Contents" href="Text/contents.html"/>
<reference type="text" title="Start" href="Text/title.html"/>
</guide>
After deleting it, the bug disappeared.
@RbnJrg If your guide section contains entries, please temporarily remove them for testing purposes, before selecting Create Index and report back whether this makes a difference.
EDIT: You can also use this
MR book by GrannyGrump to reproduce this issue.