summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/boards/boardBody.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 78418f2a..e70faa49 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -378,8 +378,8 @@ BlazeComponent.extendComponent({
new Date(card.dueAt.getTime() + 36e5),
);
});
- events.sort(function(first, second) {
- return first.id > second.id ? 1 : -1;
+ events.sort((first, second) => {
+ return first.id === second.id ? 0 : first.id > second.id ? 1 : -1;
});
callback(events);
},