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

Closed
opened 2026-04-25 00:01:04 +02:00 by adam · 7 comments
Owner

Originally created by @hjk321 on GitHub (Apr 17, 2024).

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.

Originally created by @hjk321 on GitHub (Apr 17, 2024). ### Describe the feature/enhancement Here's a screenshot from viewing an individual audiobook: ![image](https://github.com/advplyr/audiobookshelf/assets/37224753/c0ca2406-de73-4c16-9c1f-1793192680a8) 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](https://github.com/advplyr/audiobookshelf/assets/37224753/103cb42e-c382-4733-850d-8984a240e214) 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.
adam added the bug label 2026-04-25 00:01:04 +02:00
adam closed this issue 2026-04-25 00:01:04 +02:00
Author
Owner

@advplyr commented on GitHub (Apr 17, 2024):

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 commented on GitHub (Apr 17, 2024): 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?
Author
Owner

@hjk321 commented on GitHub (Apr 18, 2024):

Screenshot_20240418_073108_Firefox
v2.8.1

@hjk321 commented on GitHub (Apr 18, 2024): ![Screenshot_20240418_073108_Firefox](https://github.com/advplyr/audiobookshelf/assets/37224753/c3b09404-52f1-4d14-9d18-58d9ac5e9b7c) v2.8.1
Author
Owner

@advplyr commented on GitHub (Apr 18, 2024):

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 commented on GitHub (Apr 18, 2024): 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.
Author
Owner

@jeff47 commented on GitHub (May 16, 2024):

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 commented on GitHub (May 16, 2024): I seem to be seeing the same thing. Here's the book: <img width="795" alt="Screen Shot 2024-05-16 at 12 33 35 PM" src="https://github.com/advplyr/audiobookshelf/assets/7215369/06fc3297-30bc-4820-9788-571f5ad53a73"> 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". <img width="444" alt="Screen Shot 2024-05-16 at 12 31 44 PM" src="https://github.com/advplyr/audiobookshelf/assets/7215369/d6c25207-7c3a-4985-92fa-f5d67102f412"> The author names seem to be combined in reverse alphabetical order (Stevens -> Gugeler -> Burns -> Appleman).
Author
Owner

@advplyr commented on GitHub (May 16, 2024):

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

@advplyr commented on GitHub (May 16, 2024): I'm seeing this now along with some weird behavior around deleting authors
Author
Owner

@advplyr commented on GitHub (May 16, 2024):

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 commented on GitHub (May 16, 2024): 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.
Author
Owner

@advplyr commented on GitHub (May 27, 2024):

Fixed in v2.10.0

@advplyr commented on GitHub (May 27, 2024): Fixed in [v2.10.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.10.0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1896