Fix talk ordering

This commit is contained in:
Oliver Davies 2024-01-22 23:23:28 +00:00
parent 55e69bf9ed
commit 421d38752d

View file

@ -13,7 +13,7 @@ use:
Since September 2012, I have given {{ talkCount }} public presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.
{% for talk in data.talks|sort((a, b) => a.events|last.date|date('U') > b.events|last.date|date('U') ? -1 : 1) %}
{% for talk in data.talks|sort((a, b) => a.events|first.date|date('U') > b.events|first.date|date('U') ? -1 : 1) %}
<article>
<div class="not-prose">
<h2 class="text-xl font-bold">