It would be nice if PlecoDict or the MakePlecoDict programs coudl do the sorting...
In the meantime I have been trying to work this out myself. I tried to automate some of it, and then began to work through changing things by hand and testing every now and then. On the last test, I got this:
heap verify failed!!! Possible program bug!!! Out-of-order English, line 409 etc
And it told me the errors were in the following lines which I copy here as I cannot see any problem:
book 书
book cover 封面
book cover 书皮
book cover design(er) 封面设计
book format; book size 开本
book, guide to the use of a 凡例
bookish language 书面语
book jacket 护封
book knowledge 书本知识
book list 书目
Book Number, International Standard 国际标准书号
book or edition, hand-copied 抄本
book, reference 参考书
book review 书评
books and newspapers 书报
books and periodicals 书刊
books and writings 书籍
books, series of 丛书
Aren't these sorted right?