audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Bug]: Home/Library screen - Display authors in entered order instead of alphabetical

Open hjk321 opened this issue 1 year ago • 6 comments

Describe the feature/enhancement

Here's a screenshot from viewing an individual audiobook: image

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: image

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.

hjk321 avatar Apr 17 '24 16:04 hjk321

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?

advplyr avatar Apr 17 '24 21:04 advplyr

Screenshot_20240418_073108_Firefox v2.8.1

hjk321 avatar Apr 18 '24 13:04 hjk321

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.

advplyr avatar Apr 18 '24 21:04 advplyr

I seem to be seeing the same thing. Here's the book: Screen Shot 2024-05-16 at 12 33 35 PM

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". Screen Shot 2024-05-16 at 12 31 44 PM

The author names seem to be combined in reverse alphabetical order (Stevens -> Gugeler -> Burns -> Appleman).

jeff47 avatar May 16 '24 16:05 jeff47

I'm seeing this now along with some weird behavior around deleting authors

advplyr avatar May 16 '24 17:05 advplyr

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:

  1. Press edit on a book with multiple authors
  2. Re-order the authors and press save
  3. 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.

advplyr avatar May 16 '24 20:05 advplyr

Fixed in v2.10.0

advplyr avatar May 27 '24 21:05 advplyr