Sort group events by asc: begins_on

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-01-11 18:21:38 +01:00
parent c2987beb31
commit 7657cadbbd
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -1276,7 +1276,7 @@ defmodule Mobilizon.Events do
from(
e in Event,
where: e.attributed_to_id == ^group_id,
order_by: [desc: :id]
order_by: [asc: :begins_on]
)
end