[PR #4542] [MERGED] Add book library sort by progress updated #1215 #4278

Closed
opened 2026-04-25 00:19:06 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4542
Author: @advplyr
Created: 7/28/2025
Status: Merged
Merged: 7/28/2025
Merged by: @advplyr

Base: masterHead: progress_updated_sort


📝 Commits (2)

  • 7d8b857 Add book library sort by progress updated #1215
  • 2054acc Update library sort dropdown to use max height available

📊 Changes

5 files changed (+39 additions, -6 deletions)

View changed files

📝 client/components/cards/LazyBookCard.vue (+13 -1)
📝 client/components/controls/LibrarySortSelect.vue (+11 -1)
📝 client/store/user.js (+1 -1)
📝 client/strings/en-us.json (+2 -0)
📝 server/utils/queries/libraryItemsBookFilters.js (+12 -3)

📄 Description

Brief summary

Adds a book library sort option for progress last update. When sorting by progress updated the last update date time is shown.

Which issue is fixed?

Fixes #1215

In-depth Description

Sorting by progress was already implemented to use with the home page last listened shelf, so the actual sort logic is unchanged.
The main change is including mediaProgresses in the query when sorting by progress and not filtering by progress.

There is still the question on how to handle collapsed series but this is the same for the other sort options (except title which uses series name). I think that will need to wait until the model can be updated to handle collapsed series better.

How have you tested this?

Tested with collapse series option & ignore prefixes when sorting.

Screenshots

image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4542 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 7/28/2025 **Status:** ✅ Merged **Merged:** 7/28/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `progress_updated_sort` --- ### 📝 Commits (2) - [`7d8b857`](https://github.com/advplyr/audiobookshelf/commit/7d8b857c771940cdd0294a6f852abc60f0576d0b) Add book library sort by progress updated #1215 - [`2054acc`](https://github.com/advplyr/audiobookshelf/commit/2054accdc92749ace7d892b9bb00a4bc5999415c) Update library sort dropdown to use max height available ### 📊 Changes **5 files changed** (+39 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/components/cards/LazyBookCard.vue` (+13 -1) 📝 `client/components/controls/LibrarySortSelect.vue` (+11 -1) 📝 `client/store/user.js` (+1 -1) 📝 `client/strings/en-us.json` (+2 -0) 📝 `server/utils/queries/libraryItemsBookFilters.js` (+12 -3) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary Adds a book library sort option for progress last update. When sorting by progress updated the last update date time is shown. ## Which issue is fixed? Fixes #1215 ## In-depth Description Sorting by progress was already implemented to use with the home page last listened shelf, so the actual sort logic is unchanged. The main change is including `mediaProgresses` in the query when sorting by progress and not filtering by progress. There is still the question on how to handle collapsed series but this is the same for the other sort options (except title which uses series name). I think that will need to wait until the model can be updated to handle collapsed series better. ## How have you tested this? Tested with collapse series option & ignore prefixes when sorting. ## Screenshots <img width="313" height="507" alt="image" src="https://github.com/user-attachments/assets/8d123bcd-27e0-41c3-92e4-4952482d1a90" /> <img width="455" height="207" alt="image" src="https://github.com/user-attachments/assets/9d131b0a-5692-44e6-a668-4846c35b76d3" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:19:06 +02:00
adam closed this issue 2026-04-25 00:19:06 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4278