NB: Kovid is concerned that the bug fix will unacceptably reduce performance for those who don't use multi-level sorts. To deal with this, I have added YAT (yet another tweak) to limit the number of remembered sorts to apply.
Tweak documentation is:
Code:
# Set the maximum number of sort 'levels' that calibre will use to resort the
# library after certain operations such as searches or device insertion. Each
# sort level adds a performance penalty. If the database is large (thousands of
# books) the penalty might be noticeable. If you are not concerned about multi-
# level sorts, and if you are seeing a slowdown, reduce the value of this tweak.
maximum_resort_levels = 5
The code has not yet been merged, but I am confident that it will be.