diff --git a/lib/core/note.dart b/lib/core/note.dart index 228e27b9..4c7d89fd 100644 --- a/lib/core/note.dart +++ b/lib/core/note.dart @@ -178,10 +178,7 @@ class Note with ChangeNotifier implements Comparable { var dt = modified ?? created; var otherDt = other.modified ?? other.created; - if (dt == null && otherDt == null) { - return filePath.compareTo(other.filePath); - } - if (dt.year == 0 || otherDt.year == 0) { + if (dt == null || otherDt == null) { return filePath.compareTo(other.filePath); }