Skip to content

Commit 10fd2ae

Browse files
Merge pull request #460 from range-of-motion/attempt-another-fix-for-sorting-of-transactions
Attempt another fix for sorting of transactions
2 parents ce52f61 + 15acd16 commit 10fd2ae

File tree

1 file changed

+1
-1
lines changed
  • resources/assets/js/prototype/screens/Transactions

1 file changed

+1
-1
lines changed

resources/assets/js/prototype/screens/Transactions/Index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getTransactionsBySpan = (span) => {
5656
return happenedOn.getMonth() + 1 === span.month && happenedOn.getFullYear() === span.year;
5757
})
5858
.sort((a, b) => {
59-
return b.happened_on - a.happened_on;
59+
return new Date(b.happened_on) - new Date(a.happened_on);
6060
});
6161
};
6262

0 commit comments

Comments
 (0)