Kavita icon indicating copy to clipboard operation
Kavita copied to clipboard

Series inferred from epub books are not sorted correctly

Open tjarls opened this issue 2 years ago • 1 comments

I have noticed that series inferred from epub metedata use the wrong "Sort Name" and hence are often incorrectly sorted in the library view: image

This is due to some logic in the scanner task that fills SeriesSort with TitleSort even for books that are part of series as opposed to one shot books where the title is promoted to series name. It'd be more accurate that, when an epub metadata provides an element with a series name, to use it as SeriesSort as well. As far as I can tell, calibre does not have a sorting key for series name, so there seems to be no property "file-as" associated with the "calibre:series" element.

tjarls avatar Jul 02 '22 18:07 tjarls

@majora2007 I do agree with this approach. If the epub has a series, then it should fill that series name in the sort name, otherwise use the title name as the sort name.

therobbiedavis avatar Jul 05 '22 15:07 therobbiedavis