mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-31 02:23:42 +01:00
Fix: filter sort authors and series, authors page sort alphabetical #497
This commit is contained in:
parent
21bdd9f9ec
commit
6e99cf6570
@ -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) {
|
async matchAll(req, res) {
|
||||||
|
@ -103,10 +103,10 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
if (mediaMetadata.language && !data.languages.includes(mediaMetadata.language)) data.languages.push(mediaMetadata.language)
|
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.genres = naturalSort(data.genres).asc()
|
||||||
data.tags = naturalSort(data.tags).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.narrators = naturalSort(data.narrators).asc()
|
||||||
data.languages = naturalSort(data.languages).asc()
|
data.languages = naturalSort(data.languages).asc()
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user