diff --git a/pkg/sqlite/tag_filter.go b/pkg/sqlite/tag_filter.go index ba9e9bb08ec..27afd5858ae 100644 --- a/pkg/sqlite/tag_filter.go +++ b/pkg/sqlite/tag_filter.go @@ -62,6 +62,7 @@ func (qb *tagFilterHandler) criterionHandler() criterionHandler { tagFilter := qb.tagFilter return compoundHandler{ stringCriterionHandler(tagFilter.Name, tagTable+".name"), + stringCriterionHandler(tagFilter.SortName, tagTable+".sort_name"), qb.aliasCriterionHandler(tagFilter.Aliases), boolCriterionHandler(tagFilter.Favorite, tagTable+".favorite", nil), diff --git a/ui/v2.5/src/locales/en-GB.json b/ui/v2.5/src/locales/en-GB.json index 6eaf00f317c..2d3c7e94569 100644 --- a/ui/v2.5/src/locales/en-GB.json +++ b/ui/v2.5/src/locales/en-GB.json @@ -1158,7 +1158,7 @@ "megabits_per_second": "{value} mbps", "metadata": "Metadata", "name": "Name", - "sort_name": "Sort Name", + "sort_name": "Sorting Name", "new": "New", "none": "None", "o_count": "O Count", diff --git a/ui/v2.5/src/models/list-filter/tags.ts b/ui/v2.5/src/models/list-filter/tags.ts index b400d9d60ef..db3a84666d5 100644 --- a/ui/v2.5/src/models/list-filter/tags.ts +++ b/ui/v2.5/src/models/list-filter/tags.ts @@ -53,6 +53,7 @@ const displayModeOptions = [DisplayMode.Grid, DisplayMode.List]; const criterionOptions = [ FavoriteTagCriterionOption, createMandatoryStringCriterionOption("name"), + createStringCriterionOption("sort_name"), TagIsMissingCriterionOption, createStringCriterionOption("aliases"), createStringCriterionOption("description"), diff --git a/ui/v2.5/src/models/list-filter/types.ts b/ui/v2.5/src/models/list-filter/types.ts index 48e37c0461d..93d24765a99 100644 --- a/ui/v2.5/src/models/list-filter/types.ts +++ b/ui/v2.5/src/models/list-filter/types.ts @@ -219,4 +219,5 @@ export type CriterionType = | "code" | "photographer" | "disambiguation" - | "has_chapters"; + | "has_chapters" + | "sort_name";