Organise events by date

This commit is contained in:
Oliver Davies 2021-12-29 15:25:05 +00:00
parent 9b29494550
commit f506db6ca6

View file

@ -3,7 +3,7 @@
<h2>Events</h2>
<ul>
{% for event in events %}
{% for event in events|sort((a, b) => a.date > b.date) %}
{% include 'talk/events/event.html.twig' with {
date: event.date,
is_online: event.is_online ?? false,