diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 3cf8040..3ee67c6 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -121,8 +121,8 @@ class AppsPageState extends State { result = (nameA + a.app.author).compareTo(nameB + b.app.author); } else if (settingsProvider.sortColumn == SortColumnSettings.releaseDate) { - result = (a.app.releaseDate) - ?.compareTo(b.app.releaseDate ?? DateTime.now()) ?? + result = (a.app.releaseDate)?.compareTo( + b.app.releaseDate ?? DateTime.fromMicrosecondsSinceEpoch(0)) ?? 0; } return result;