Sort group events by asc: begins_on
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c2987beb31
commit
7657cadbbd
|
@ -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 a new issue