# HG changeset patch # User ymh # Date 1498127873 -7200 # Node ID 15ebcb57b544fba6c1d50fa45d288d5772a7ff00 # Parent 043477fd5c5c3d8e529c4778dba618d6a922303c Make sure to sort nodes in session diff -r 043477fd5c5c -r 15ebcb57b544 client/src/components/Session.js --- a/client/src/components/Session.js Thu Jun 22 12:09:48 2017 +0200 +++ b/client/src/components/Session.js Thu Jun 22 12:37:53 2017 +0200 @@ -52,7 +52,7 @@ const currentSession = sessions.find(session => session._id === sessionId); const currentNotes = notes.filter(note => { return note.session === sessionId; - }); + }).sort((n1,n2) => { return n1.get('startedAt').localeCompare(n2.get('startedAt')); }); return { currentSession,