Fix talk ordering

This commit is contained in:
Oliver Davies 2024-01-03 20:00:00 +00:00
parent 032189bf51
commit 7eac17488b
37 changed files with 93 additions and 93 deletions

View file

@ -7,7 +7,7 @@ use:
Starting with my first talk in September 2012, I have given {{ page.talk_count }} 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 > b.events|last.date ? -1 : 1) %}
{% for talk in data.talks|sort((a, b) => a.events|last.date|date('U') > b.events|last.date|date('U') ? -1 : 1) %}
<article>
<div class="not-prose">
<h2 class="text-xl font-bold">