From afbe43965e6e6049e781d076022482fff3398518 Mon Sep 17 00:00:00 2001 From: Alex Garrity Date: Mon, 17 Feb 2020 13:54:47 +0000 Subject: [PATCH] Reverse notes after filtering --- browser/main/NoteList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/NoteList/index.js b/browser/main/NoteList/index.js index 19387acf..92ba5d09 100644 --- a/browser/main/NoteList/index.js +++ b/browser/main/NoteList/index.js @@ -1144,12 +1144,12 @@ class NoteList extends React.Component { const sortedNotes = location.pathname.match(/\/starred|\/trash/) ? this.getNotes().sort(sortFunc) : this.sortByPin(this.getNotes().sort(sortFunc)) - if (sortDir === 'DESCENDING') sortedNotes.reverse() this.notes = notes = sortedNotes.filter(note => { // this is for the trash box if (note.isTrashed !== true || location.pathname === '/trashed') return true }) + if (sortDir === 'DESCENDING') this.notes.reverse() moment.updateLocale('en', { relativeTime: {