Skip to content

Commit

Permalink
fix: IRL location sort
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanth-ideas2it authored and madan-ideas2it committed Nov 28, 2024
1 parent c317a75 commit 25a6539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/irl.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]; }) =>
Expand Down

0 comments on commit 25a6539

Please sign in to comment.