[Enhancement]: Ordinal title sort #2461

Closed
opened 2026-04-25 00:07:24 +02:00 by adam · 5 comments
Owner

Originally created by @Toby222 on GitHub (Jan 4, 2025).

Type of Enhancement

Web Interface/Frontend

Describe the Feature/Enhancement

Add ordinal sorting (1 -> 2 -> ... -> 9 -> 10) instead of/in addition to current alphabetical sort (1 -> 10 -> 11 -> ... -> 2)

Why would this be helpful?

Having series with numbered titles be ordered in proper order when sorting by Title

Future Implementation (Screenshot)

books being sorted ordinally

Audiobookshelf Server Version

v2.17.7

Current Implementation (Screenshot)

books being sorted alphabetically, causing book 12 to be before book 2
the sort selector showing "Title" as selected

Originally created by @Toby222 on GitHub (Jan 4, 2025). ### Type of Enhancement Web Interface/Frontend ### Describe the Feature/Enhancement Add ordinal sorting (1 -> 2 -> ... -> 9 -> 10) instead of/in addition to current alphabetical sort (1 -> 10 -> 11 -> ... -> 2) ### Why would this be helpful? Having series with numbered titles be ordered in proper order when sorting by Title ### Future Implementation (Screenshot) ![books being sorted ordinally](https://github.com/user-attachments/assets/fb080504-577c-4e36-ae32-85b053912a1d) ### Audiobookshelf Server Version v2.17.7 ### Current Implementation (Screenshot) ![books being sorted alphabetically, causing book 12 to be before book 2](https://github.com/user-attachments/assets/6b8424a5-06e5-4dba-8719-6b988c9a0c3c) ![the sort selector showing "Title" as selected](https://github.com/user-attachments/assets/bb7d8b04-e900-45f1-b591-e74b78467327)
adam added the enhancement label 2026-04-25 00:07:24 +02:00
adam closed this issue 2026-04-25 00:07:24 +02:00
Author
Owner

@advplyr commented on GitHub (Jan 4, 2025):

Did you set a series and sequence?

@advplyr commented on GitHub (Jan 4, 2025): Did you set a series and sequence?
Author
Owner

@Toby222 commented on GitHub (Jan 4, 2025):

Yep, and in the series view they are properly ordered

@Toby222 commented on GitHub (Jan 4, 2025): Yep, and in the series view they are properly ordered ![](https://github.com/user-attachments/assets/e4a08a9c-8a05-4868-8190-7bf97a7d3b91)
Author
Owner

@advplyr commented on GitHub (Jan 4, 2025):

As far as I know we can't do this with sqlite. I looked into this originally because many users want alphanumeric series sequences.

In looking for my previous responses since this has been brought up a few times I found a duplicate issue

https://github.com/advplyr/audiobookshelf/issues/2281

@advplyr commented on GitHub (Jan 4, 2025): As far as I know we can't do this with sqlite. I looked into this originally because many users want alphanumeric series sequences. In looking for my previous responses since this has been brought up a few times I found a duplicate issue https://github.com/advplyr/audiobookshelf/issues/2281
Author
Owner

@Toby222 commented on GitHub (Jan 5, 2025):

Ah, I hadn't considered that the ordering happens server-side

@Toby222 commented on GitHub (Jan 5, 2025): Ah, I hadn't considered that the ordering happens server-side
Author
Owner

@advplyr commented on GitHub (Jan 5, 2025):

It didn't always. Users came along with massive book collections that couldn't all be loaded in memory to do the sort, so the sort is done when querying the db.

@advplyr commented on GitHub (Jan 5, 2025): It didn't always. Users came along with massive book collections that couldn't all be loaded in memory to do the sort, so the sort is done when querying the db.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2461