Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
d937ae212c |
@@ -755,6 +755,9 @@ class MainPageState extends State<MainPage> with WindowListener {
|
|||||||
.where((note) => note.content.isNotEmpty)
|
.where((note) => note.content.isNotEmpty)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
|
// Sort by date, newest first
|
||||||
|
filteredResults.sort((a, b) => b.date.compareTo(a.date));
|
||||||
|
|
||||||
// Important: update the dialog state after search completes
|
// Important: update the dialog state after search completes
|
||||||
dialogSetState(() {
|
dialogSetState(() {
|
||||||
_searchResults = filteredResults;
|
_searchResults = filteredResults;
|
||||||
|
Reference in New Issue
Block a user