Quote:
Originally Posted by theducks
David
I was reading in the Modify EPUB PI topic and something
Duplicate Selectors and changing their ORDER when sorting could have significant effects on the document.
|
I didn't think of that at all when I started. It was only after rereading one of the posts that I thought
Quote:
Maybe ?
1) Display a pre-sort warning if dups are found and:
a) allow a Bailout
b) just refuse to proceed.
2) Use a 'bubble sort' so the order does not change. I know, Bubble Sorts are slow.
|
I haven't thought about sort algorithms for a VERY long time. I'll have a think of these options.
In the meantime, I have added the single file sort that has been suggested. The toolbar button now has a menu option "Sort current file". When that is checked, pressing the button will sort the currently opened file if it is a stylesheet. If it is not checked, it will sort all of them as it does now.