Quote:
Originally Posted by KevinH
So it should be order consistent and preserving for the order generated by the dialog that selects the javascripts.
|
I was able to duplicate the issue, and I think it relates to this part. The dialog itself seems to occasionally invert the order, and that inversion then is reflected in the insertion order.
Here's what I did, in case it helps. First I did my usual routine:
1. Created a new, empty EPUB3
2. Used the DOCXImport plugin to pull in a Word file
3. Ran Mend & Prettify
4. Restructured EPUB to Sigil Norm
5. Added the JS files via Add Existing Files (two files, script.js and a jquery.js)
6. Linked Javascripts—(dialogue had script.js first, and result did too)
After that, I tried to see how many of those steps I could skip and land at the same result. So, I:
1. Created a new, empty EPUB3
2. Ran Mend & Prettify
3. Added the JS files via Add Existing Files
4. Linked Javascripts
This had the same result, inverted order in the dialog and in the result. So I tried this:
1. Created a new, empty EPUB3
2. Added the JS files via Add Existing Files
3. Linked Javascripts—(dialogue had jquery.js first, and result did too)
That got my hopes up, thinking maybe running Mend & Prettify first caused the problem. Unfortunately though, I then tried doing it a few more times, and it started inverting the order even without Mend & Prettify.
I have a user-template3.xhtml file l set up some time ago which has those links already in the <head>. I wondered if having that preconfigured was contributing to the problem, so I renamed it and tried again. Same deal as that last run though—initially, created a new file, pulled the JS files in, linked em, and the alpha order was preserved in both the dialogue and the result. Then that started inverting too. Spitballing, maybe it has to do with how many EPUBs I've got open at the same time?