From 5f2000cd2594b14a8db7ab1e73ab52168a687a2c Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 29 Jan 2023 13:05:22 -0900 Subject: [PATCH] use case insensitive sort --- backend/internal/data/repo/repo_locations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/data/repo/repo_locations.go b/backend/internal/data/repo/repo_locations.go index a5ca126..4e72008 100644 --- a/backend/internal/data/repo/repo_locations.go +++ b/backend/internal/data/repo/repo_locations.go @@ -280,7 +280,7 @@ func (lr *LocationRepository) Tree(ctx context.Context, GID uuid.UUID, tq TreeQu FROM location_tree ORDER BY level, node_type DESC, -- sort locations before items - NAME;` + lower(NAME)` if tq.WithItems { itemQuery := `