Quote:
Originally Posted by Lady Fitzgerald
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.