Merge branch 'fix-group-event-order' into 'master'

Sort group events by asc: begins_on

Closes #551

See merge request framasoft/mobilizon!782
This commit is contained in:
Thomas Citharel 2021-01-11 18:49:06 +01:00
commit 3eb89c85bd

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