Fix: filter sort authors and series, authors page sort alphabetical #497

This commit is contained in:
advplyr 2022-04-24 17:15:41 -05:00
parent 21bdd9f9ec
commit 6e99cf6570
2 changed files with 4 additions and 3 deletions

View File

@ -533,7 +533,8 @@ class LibraryController {
})
}
})
res.json(Object.values(authors))
res.json(naturalSort(Object.values(authors)).asc(au => au.name))
}
async matchAll(req, res) {

View File

@ -103,10 +103,10 @@ module.exports = {
}
if (mediaMetadata.language && !data.languages.includes(mediaMetadata.language)) data.languages.push(mediaMetadata.language)
})
data.authors = naturalSort(data.authors).asc()
data.authors = naturalSort(data.authors).asc(au => au.name)
data.genres = naturalSort(data.genres).asc()
data.tags = naturalSort(data.tags).asc()
data.series = naturalSort(data.series).asc()
data.series = naturalSort(data.series).asc(se => se.name)
data.narrators = naturalSort(data.narrators).asc()
data.languages = naturalSort(data.languages).asc()
return data