audiobookshelf
audiobookshelf copied to clipboard
[Bug]: Home/Library screen - Display authors in entered order instead of alphabetical
Describe the feature/enhancement
Here's a screenshot from viewing an individual audiobook:
You'll notice that Orson Scott Card is listed as the first author, and Aaron Johnston is listed as the second author. It is listed in this order because that was the order they were entered in metadata. This is how it should be - after all, Card is the "primary" author of the work so he should be listed first.
However, on the home and library screens, the behavior is different:
Here the authors are listed alphabetically by first name, which is not only inconsistent with the book view but is often not the desired behavior. In this image, the current sorting makes it seem like Aaron Johnston is the primary author and Orson Scott Card is the secondary author.
A good enhancement would be to make these two behaviors consistent. Personally, I would favor the book view's behavior, but this is obviously open to discussion if someone has a better idea.
I'm not able to reproduce this. Can you share a screenshot of the authors in the edit modal?
Can you share what version of the server you are on?
v2.8.1
Can you try reproducing this again by removing "Aaron Johnston" then press the "Save" button. After saving add "Aaron Johnson" again.
Let me know if you still see the authors listed with "Aaron Johnston" first.
I think this may have been a fluke with the cache or something because I'm not able to reproduce this in all my testing.
I seem to be seeing the same thing. Here's the book:
I would expect this to be sorted as "Burns, James Macgregor" or "Appleman, Roy E", but some for reason it's going under "Stevens, John".
The author names seem to be combined in reverse alphabetical order (Stevens -> Gugeler -> Burns -> Appleman).
I'm seeing this now along with some weird behavior around deleting authors
I found an issue with the sorting of the author names but wasn't able to replicate the author name order issue again on this third attempt.
The only way I can replicate this is by:
- Press edit on a book with multiple authors
- Re-order the authors and press save
- Observe the book in the library updated in real-time to reflect the new order
However, if you refresh the page after that it will revert back because that new sort order isn't actually being saved. The way the order has to be adjusted is by removing an author and pressing save, then re-adding the author in the correct order.
Fixed in v2.10.0