Skip to content

Commit

Permalink
Merge pull request #460 from range-of-motion/attempt-another-fix-for-…
Browse files Browse the repository at this point in the history
…sorting-of-transactions

Attempt another fix for sorting of transactions
  • Loading branch information
range-of-motion authored Dec 9, 2023
2 parents ce52f61 + 15acd16 commit 10fd2ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const getTransactionsBySpan = (span) => {
return happenedOn.getMonth() + 1 === span.month && happenedOn.getFullYear() === span.year;
})
.sort((a, b) => {
return b.happened_on - a.happened_on;
return new Date(b.happened_on) - new Date(a.happened_on);
});
};
Expand Down

0 comments on commit 10fd2ae

Please sign in to comment.