View Single Post
Old 01-06-2022, 06:18 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The attached file implements sortable headings. I would be grateful if some of you who run from source could try it.

You will note that the up and down arrows turn on and off. A possible surprise: you can't move new columns. Reason: they don't exist yet so their order cannot be stored.

Decompress it and put it in <calibre source>/src/calibre/gui2/preferences, replacing the existing columns.py. I will submit it to Kovid once someone other than me has tried it.

I suggest you make a backup of your library just in case something is broken. For example, my first version threw away all column order information. The only way to get it back was to restore from backup.

EDIT: zip file removed. The changes are now in calibre source.

Last edited by chaley; 01-06-2022 at 10:24 AM. Reason: Remove the python file. The changes are in calibre source
chaley is offline   Reply With Quote