Add:Alternate bookshelf view show sorting/filtering keys and ignore The prefix title #232 #361

This commit is contained in:
advplyr 2022-02-14 16:01:53 -06:00
parent f15be4c96e
commit 3be32a2813
5 changed files with 51 additions and 12 deletions

View file

@ -214,7 +214,7 @@ class LibraryController {
var sortingIgnorePrefix = this.db.serverSettings.sortingIgnorePrefix
series = sort(series).asc(s => {
if (sortingIgnorePrefix && s.name.toLowerCase().startsWith('the')) {
if (sortingIgnorePrefix && s.name.toLowerCase().startsWith('the ')) {
return s.name.substr(4)
}
return s.name