Reverse sort the notes

This way the latest note is on top.
This commit is contained in:
Vishesh Handa
2018-06-03 19:34:28 +02:00
parent 2c68865c46
commit fd98ef1048

View File

@ -30,6 +30,8 @@ class FileStorage {
notes.add(note);
}
// Reverse sort
notes.sort((a, b) => b.compareTo(a));
return notes;
}