mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-23 04:17:15 -05:00
Merge pull request #4906 from sir-wilhelm/playlist-sorted
When adding items to playlist, sort the playlist sections alphabetically.
This commit is contained in:
commit
ebcb122eb8
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user