Skip to content

Commit

Permalink
Fix tag_texts sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
amoedoamorim committed Sep 16, 2024
1 parent 5030d16 commit 6144f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graph/types/team_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6144f83

Please sign in to comment.