use case insensitive sort

This commit is contained in:
Hayden 2023-01-29 13:05:22 -09:00
parent cbac17c059
commit 5f2000cd25
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -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 := `