mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 09:47:35 +08:00
Reverse sort the notes
This way the latest note is on top.
This commit is contained in:
@ -30,6 +30,8 @@ class FileStorage {
|
||||
notes.add(note);
|
||||
}
|
||||
|
||||
// Reverse sort
|
||||
notes.sort((a, b) => b.compareTo(a));
|
||||
return notes;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user