View Single Post
Old 03-30-2011, 08:27 AM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Lady Fitzgerald View Post
It seemed to me the OP was wanting to alter the database to maintain original filenames but until s/he responds back here, we won't really know.
You may be right but the OP did specifically state "Adding new column to sort by filename" in the thread title. Doesn't sound like a change to the database to me.

Setting the below tweak might accomplish what the OP wants by sorting the library upon start up.

Quote:
# Provide a set of columns to be sorted on when calibre starts # The argument is None if saved sort history is to be used
# otherwise it is a list of column,order pairs. Column is the
# lookup/search name, found using the tooltip for the column
# Order is 0 for ascending, 1 for descending
# For example, set it to [('authors',0),('title',0)] to sort by
# title within authors.

sort_columns_at_startup = ('authors',0),('series',0),('title',0)
The above sorts everything by author, with-in any author the series will be in series order and all other by author in alphabetical order.
DoctorOhh is offline   Reply With Quote