Skip to content

Commit fb983f8

Browse files
committed
Fix sort
1 parent 7337566 commit fb983f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/store/modules/tweet/getters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import moment from 'moment';
33
export default {
44
tweetsSortedByCreatedDate: state => Object.values(state.tweets).sort(
55
(a, b) => (
6-
moment(a.created).isBefore(moment(b.created)) ? 1 : -1
6+
moment(b.created) - moment(a.created)
77
)
88
),
99

0 commit comments

Comments
 (0)