Skip to content

Commit

Permalink
fix: last updated team builder sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed Nov 8, 2024
1 parent 65b1a26 commit 1220e6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function mapD2EventsToIncidentManagementTeam(
const sortedByUpdatedDates = d2Events.sort(function (a, b) {
if (!a.updatedAt) return -1;
if (!b.updatedAt) return 1;
return a.updatedAt < b.updatedAt ? -1 : a.updatedAt > b.updatedAt ? 1 : 0;
return a.updatedAt > b.updatedAt ? -1 : a.updatedAt < b.updatedAt ? 1 : 0;
});

return new IncidentManagementTeam({
Expand Down

0 comments on commit 1220e6e

Please sign in to comment.