From 63584548d0fc00143c0c1fd6121ba9a74dd7e5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Berente?= <30603208+berenteb@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:37:46 +0100 Subject: [PATCH] fix: presentation sort --- services/conference.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/conference.service.ts b/services/conference.service.ts index 3b804cf..2b27e1c 100644 --- a/services/conference.service.ts +++ b/services/conference.service.ts @@ -15,10 +15,10 @@ export class ConferenceService { const aStartDate = new Date(a.startTime); const bStartDate = new Date(b.startTime); if (isBefore(aStartDate, bStartDate)) { - return 1; + return -1; } if (isAfter(aStartDate, bStartDate)) { - return -1; + return 1; } return 0; });