fix: deprecation error on talks pages
This commit is contained in:
parent
ffdefc35ba
commit
c20fde24c3
|
@ -3,7 +3,7 @@
|
|||
<h2>Events</h2>
|
||||
|
||||
<ul>
|
||||
{% for event in events|sort((a, b) => a.date > b.date) %}
|
||||
{% for event in events|sort((a, b) => a.date <=> b.date) %}
|
||||
{% include 'talk/event-list-event.html.twig' with {
|
||||
date: event.date,
|
||||
is_online: event.is_online ?? false,
|
||||
|
|
|
@ -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') }}">
|
||||
|
|
Loading…
Reference in a new issue