From 6144f836eb80f6766414cfa287f3f72c6e3024f7 Mon Sep 17 00:00:00 2001 From: Alexandre Amorim Date: Mon, 16 Sep 2024 13:00:44 -0300 Subject: [PATCH] Fix tag_texts sorting --- app/graph/types/team_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graph/types/team_type.rb b/app/graph/types/team_type.rb index c34d52dd5..33b0c691b 100644 --- a/app/graph/types/team_type.rb +++ b/app/graph/types/team_type.rb @@ -224,7 +224,7 @@ def sources(keyword: nil) end def tag_texts(keyword: nil) - object.tag_texts_by_keyword(keyword).sort_by { |tag_text| tag_text.text.downcase } + object.tag_texts_by_keyword(keyword).order('text ASC') end field :tag_texts_count, GraphQL::Types::Int, null: true do