tachiyomiJ2K icon indicating copy to clipboard operation
tachiyomiJ2K copied to clipboard

Added option to sort books in library by oldest unread chapter (next unread chapter).

Open meee-low opened this issue 2 years ago • 1 comments

This closes feature request #1443, posted by me a few days ago. This aims to make it easier for users to read chapters across multiple series in release order.

This involves a few additional functions for the SQL queries and the new option in the UI.

Tests

I tested that the ascending/descending order matches the already existing "last updated" order, in the case where those are the same (when the only unread chapter is the latest chapter). For titles with no unread chapters, the behavior is to default to alphabetical, like other similar sorting options.

Possible alternative

This implementation interprets "next" as "oldest unread chapter". If a user skipped chapters, that's not quite the case. However, this interpretation matches the current behavior for clicking the open book button in the library (opens to the oldest unread chapter).
An alternative approach would be to find the actual latest chapter read in the user history, then find the next chapter from there.

meee-low avatar Oct 26 '22 23:10 meee-low

Hey, it's been some time. Is the project open for outside contributions like this? Is there something I can/should do to get this reviewed? I'm open for any questions.

Thank you.

meee-low avatar May 12 '23 16:05 meee-low