mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 02:45:02 +02:00
Add secondary sort by series sort title when sorting by author #274
This commit is contained in:
parent
d4525ad5ca
commit
1b79b3f42d
2 changed files with 26 additions and 4 deletions
|
@ -162,6 +162,11 @@ class BookMetadata {
|
|||
if (!series) return null
|
||||
return series.sequence || ''
|
||||
}
|
||||
getSeriesSortTitle(series) {
|
||||
if (!series) return ''
|
||||
if (!series.sequence) return series.name
|
||||
return `${series.name} #${series.sequence}`
|
||||
}
|
||||
|
||||
update(payload) {
|
||||
var json = this.toJSON()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue