Sort events by date
This commit is contained in:
parent
3847f56beb
commit
26ceec5f20
|
@ -7,7 +7,7 @@
|
|||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in events %}
|
||||
{% for event in events|sort((a, b) => a.date < b.date) %}
|
||||
<li>
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||
|
|
Loading…
Reference in a new issue