#1308 Fix group sorting and add new criteria (creation date, last event activity)

This commit is contained in:
Massedil
2024-10-24 19:03:55 +02:00
parent 41aa81097d
commit 6ff3525764
4 changed files with 91 additions and 21 deletions

View File

@@ -171,7 +171,11 @@ defmodule Mobilizon.GraphQL.Schema.SearchType do
enum :search_group_sort_options do
value(:match_desc, description: "The pertinence of the result")
value(:member_count_desc, description: "The members count of the group")
value(:member_count_asc, description: "The members count of the group ascendant order")
value(:member_count_desc, description: "The members count of the group descendent order")
value(:created_at_asc, description: "When the group was created ascendant order")
value(:created_at_desc, description: "When the group was created descendent order")
value(:last_event_activity, description: "Last event activity of the group")
end
enum :search_event_sort_options do