mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-19 10:19:37 +00:00
Sort the playlist sections alphabetically.
This commit is contained in:
parent
991d25f628
commit
648983708e
1 changed files with 4 additions and 1 deletions
|
|
@ -97,7 +97,10 @@ export default {
|
|||
...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() {
|
||||
return this.selectedPlaylistItems.length > 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue