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:
commit
3eb89c85bd
@ -1276,7 +1276,7 @@ defmodule Mobilizon.Events do
|
|||||||
from(
|
from(
|
||||||
e in Event,
|
e in Event,
|
||||||
where: e.attributed_to_id == ^group_id,
|
where: e.attributed_to_id == ^group_id,
|
||||||
order_by: [desc: :id]
|
order_by: [asc: :begins_on]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user