From 25a6539b01e97f26cadc35f2196be4158a0acfd4 Mon Sep 17 00:00:00 2001 From: prasanth-ideas2it Date: Thu, 28 Nov 2024 18:54:04 +0530 Subject: [PATCH] fix: IRL location sort --- services/irl.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/services/irl.service.ts b/services/irl.service.ts index c8b03c90..246a3afa 100644 --- a/services/irl.service.ts +++ b/services/irl.service.ts @@ -15,6 +15,7 @@ export const getAllLocations = async () => { } const result = await response.json(); + result.sort((a: { priority: number }, b: { priority: number }) => a.priority - b.priority); const filteredResult = result.filter( (item: { pastEvents: IPastEvents[]; upcomingEvents: IUpcomingEvents[]; }) =>