From fe2a1b5f7c71d97170b200a131e747c8d10c0e6a Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:05:56 -0500 Subject: [PATCH] make fmt-ui --- pkg/sqlite/tag.go | 2 +- ui/v2.5/src/components/Shared/TagLink.tsx | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pkg/sqlite/tag.go b/pkg/sqlite/tag.go index 6a31df2ef08..00450085dcd 100644 --- a/pkg/sqlite/tag.go +++ b/pkg/sqlite/tag.go @@ -677,7 +677,7 @@ func (qb *TagStore) getTagSort(query *queryBuilder, findFilter *models.FindFilte sortQuery := "" switch sort { case "name": - sortQuery += fmt.Sprintf(" ORDER BY COALESCE(tags.sort_name, tags.name, tags.id) COLLATE NATURAL_CI %s", getSortDirection(direction)) + sortQuery += fmt.Sprintf(" ORDER BY COALESCE(tags.sort_name, tags.name) COLLATE NATURAL_CI %s", getSortDirection(direction)) case "scenes_count": sortQuery += getCountSort(tagTable, scenesTagsTable, tagIDColumn, direction) case "scene_markers_count": diff --git a/ui/v2.5/src/components/Shared/TagLink.tsx b/ui/v2.5/src/components/Shared/TagLink.tsx index 0c0b7b6fd78..63352aaa654 100644 --- a/ui/v2.5/src/components/Shared/TagLink.tsx +++ b/ui/v2.5/src/components/Shared/TagLink.tsx @@ -19,8 +19,8 @@ type SceneMarkerFragment = Pick & { primary_tag: Pick; }; -interface ISortNameLinkProps{ - link: string +interface ISortNameLinkProps { + link: string; className?: string; sortName?: string; } @@ -32,7 +32,12 @@ const SortNameLinkComponent: React.FC = ({ children, }) => { return ( - + {children} ); @@ -282,7 +287,11 @@ export const TagLink: React.FC = ({ }, [hierarchyTooltipID]); return ( - + {title} {showHierarchyIcon && (