[PR #4906] [MERGED] When adding items to playlist, sort the playlist sections alphabetically. #4368

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4906
Author: @sir-wilhelm
Created: 12/12/2025
Status: Merged
Merged: 12/21/2025
Merged by: @advplyr

Base: masterHead: playlist-sorted


📝 Commits (1)

  • 6489837 Sort the playlist sections alphabetically.

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 client/components/modals/playlists/AddCreateModal.vue (+4 -1)

📄 Description

Brief summary

When adding items to playlist I noticed they are not sorted alphabetically like they are on the playlist page. I have one named _Up Next, named that way so it always shows up on top, but when adding items to playlist it's not sorted alphabetically.

This PR sorts the playlist.

Which issue is fixed?

None

In-depth Description

I just modified sortedPlaylists() on the playlist modal to ensure playlist that are selected (isItemsIncluded) come before those that are not, and if the items are in the same group to sort by name.
This makes each section sorted alphabetically (playlist the item is added to and the rest of the playlist)

How have you tested this?

I ended up using github's codespaces, uploaded some small .mp3s and used them as "audiobooks" to test the playlist modal.

Screenshots

Current:
image
After changes:
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/4906 **Author:** [@sir-wilhelm](https://github.com/sir-wilhelm) **Created:** 12/12/2025 **Status:** ✅ Merged **Merged:** 12/21/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `playlist-sorted` --- ### 📝 Commits (1) - [`6489837`](https://github.com/advplyr/audiobookshelf/commit/648983708ed2c461a286f153917615d60788cffe) Sort the playlist sections alphabetically. ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/components/modals/playlists/AddCreateModal.vue` (+4 -1) </details> ### 📄 Description ## Brief summary When adding items to playlist I noticed they are not sorted alphabetically like they are on the playlist page. I have one named `_Up Next`, named that way so it always shows up on top, but when adding items to playlist it's not sorted alphabetically. This PR sorts the playlist. ## Which issue is fixed? None ## In-depth Description I just modified `sortedPlaylists()` on the playlist modal to ensure playlist that are selected (`isItemsIncluded`) come before those that are not, and if the items are in the same group to sort by name. This makes each section sorted alphabetically (playlist the item is added to and the rest of the playlist) ## How have you tested this? I ended up using github's codespaces, uploaded some small .mp3s and used them as "audiobooks" to test the playlist modal. ## Screenshots Current: <img width="354" height="472" alt="image" src="https://github.com/user-attachments/assets/96a0fa50-74f8-4978-9444-0d6cb80af050" /> After changes: <img width="382" height="461" alt="image" src="https://github.com/user-attachments/assets/91a506ad-407e-4b8a-ace0-4406b30431d9" /> --- <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:27 +02:00
adam closed this issue 2026-04-25 00:19:27 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4368