fix direction dependent thichness

This commit is contained in:
2022-11-03 11:22:38 +01:00
parent 019cd2dad0
commit 348886b5bb
3 changed files with 30 additions and 17 deletions

View File

@ -26,7 +26,7 @@ class FileChangeNotifier extends ChangeNotifier {
return NoteTileData(name, filename, lastmodified);
}).toList();
dta.sort(
(a, b) => a.lastModified.isAfter(b.lastModified) ? -1 : 1,
(a, b) => a.lastModified.compareTo(b.lastModified),
);
notifyListeners();
tiledata = dta;