Sort events by date

This commit is contained in:
Oliver Davies 2021-09-07 13:26:33 +01:00
parent 3847f56beb
commit 26ceec5f20

View file

@ -7,7 +7,7 @@
<h2>Events</h2> <h2>Events</h2>
<ul> <ul>
{% for event in events %} {% for event in events|sort((a, b) => a.date < b.date) %}
<li> <li>
{% if event.url %} {% if event.url %}
<a href="{{ event.url }}">{{ event.name }}</a> <a href="{{ event.url }}">{{ event.name }}</a>