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(
|
||||
e in Event,
|
||||
where: e.attributed_to_id == ^group_id,
|
||||
order_by: [desc: :id]
|
||||
order_by: [asc: :begins_on]
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue