From 474090017c316faf1f01d7738ee32850e2ebe192 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 30 Nov 2022 06:31:40 -0800 Subject: [PATCH] tags: make sorting case-insensitive (fix #271) --- lib/Db/TimelineQueryTags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/TimelineQueryTags.php b/lib/Db/TimelineQueryTags.php index 4df0a5f6..192f21fa 100644 --- a/lib/Db/TimelineQueryTags.php +++ b/lib/Db/TimelineQueryTags.php @@ -61,7 +61,7 @@ trait TimelineQueryTags // GROUP and ORDER by tag name $query->groupBy('st.id'); - $query->orderBy('st.name', 'ASC'); + $query->orderBy($query->createFunction('LOWER(st.name)'), 'ASC'); $query->addOrderBy('st.id'); // tie-breaker // FETCH all tags