Add secondary sort by series sort title when sorting by author #274

This commit is contained in:
advplyr committed 2022-04-22 17:11:03 -05:00
1 parent d4525ad5ca
commit 1b79b3f42d
2 files changed
+26 -4

No files matched your search

+5
View File
@@ -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()