mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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);
|
notes.add(note);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reverse sort
|
||||||
|
notes.sort((a, b) => b.compareTo(a));
|
||||||
return notes;
|
return notes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user