The sort keys for the sub-sorted columns are now only evaluated on demand.
The common case is that the keys from the first column will differ,
therefore we can speed up sorting on average by delaying evaluation of
the sort keys for the second and later columns, only evaluating them
when the sort keys of the first column for a particular book differ.
The gains will be particularly noticeable for columns where calculating
the sort key is expensive, like composite columns or the series column.
Fix a regression that could cause the dates in custom date-type columns
to change in some timezones when using th edit metadata dialog to make
unrelated changes. Fixes#1217096 [After updating metadata (i.e. new cover) home made date column (YYYY) is adjusted too](https://bugs.launchpad.net/calibre/+bug/1217096)
Merge branch 'master' of https://github.com/cbhaley/calibre
When replacing formats in a book with a very long title+authors on
windows, newdb could leave behind the old format file, because the
filename shortening algorithm has changed. Handle that case.
Creating a catalog with an already existing catalog in the library would
cause a temporary duplicate entry in the book list (the entry would go
away on restart. Also fix the author sort for catalogs generated in the
AZW3 format not being correct.
Fix content server giving an error if you return to the top level page
after using the virtual libraries. Fixes#1216838 [500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.](https://bugs.launchpad.net/calibre/+bug/1216838)
In EPUB 3 titles are not titles they can be series or sub titles or
hobgoblins and we have no well defined way to find out what they are, so
just replace the first title and call it quits.
Book list: When sorting on a currently unsorted column, use the last
used sort for that column, instead of always sorting in ascending order.
Fixes#1216714 [[Feature request] I'd like Calibre to memorize the sorting order of a column](https://bugs.launchpad.net/calibre/+bug/1216714)
Fix a regression that broke splitting of multiple valued field like tags
into many items during a rename. Fixes#1216699 [Renaming tags and adding "," to split tags does not work anymore](https://bugs.launchpad.net/calibre/+bug/1216699)