Sort events to show the most recent first
This commit is contained in:
parent
33b9594c00
commit
101bf52868
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in events %}
|
||||
{% for event in events|sort((a, b) => b.date <=> a.date) %}
|
||||
<li>
|
||||
{% if event.url %}
|
||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue