mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-27 06:34:14 +00:00
Fix ordering
This commit is contained in:
parent
41d2f4417e
commit
50f86b66d4
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ var Chatroom = React.createClass({
|
|||
history.push(data);
|
||||
self.setProps({
|
||||
history: history.sort((a, b) => {
|
||||
return a.createdAt - b.createAt;
|
||||
return new Date(a.createdAt) - new Date(b.createdAt);
|
||||
})
|
||||
});
|
||||
self.scrollToBottom();
|
||||
|
|
Loading…
Reference in a new issue