fix: deprecation error on talks pages

This commit is contained in:
Oliver Davies 2022-07-01 21:58:28 +01:00
parent ffdefc35ba
commit c20fde24c3
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ Drupal, automated testing, Git, CSS, and systems administration.</p>
<div class="mt-10">
<div class="space-y-8">
{% for talk in data.talks|sort((a, b) => get_last_event_date_for_talk(a) < get_last_event_date_for_talk(b)) %}
{% for talk in data.talks|sort((a, b) => get_last_event_date_for_talk(a) <=> get_last_event_date_for_talk(b)) %}
<article>
<h2>
<a class="dark:text-blue-400 text-blue-primary" href="{{ talk.url|trim('/', 'right') }}">