Sort the playlist sections alphabetically.

This commit is contained in:
sir-wilhelm 2025-12-12 04:02:20 +00:00
parent 991d25f628
commit 648983708e

View file

@ -97,7 +97,10 @@ export default {
...playlist ...playlist
} }
}) })
.sort((a, b) => (a.isItemIncluded ? -1 : 1)) .sort((a, b) => {
if (a.isItemIncluded !== b.isItemIncluded) return a.isItemIncluded ? -1 : 1
return a.name.localeCompare(b.name)
})
}, },
isBatch() { isBatch() {
return this.selectedPlaylistItems.length > 1 return this.selectedPlaylistItems.length > 1