Skip to content

Commit 6e1b25a

Browse files
Merge pull request #457 from range-of-motion/fix-bug-where-transactions-got-sorted-incorrectly
Fix bug where transactions got sorted incorrectly
2 parents 949315a + 0623943 commit 6e1b25a

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.id - a.id;
59+
return b.happened_on - a.happened_on;
6060
});
6161
};
6262

0 commit comments

Comments
 (0)