From 28cc7be936f0dacb32c6c3c6ada73a14d85e303d Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 24 Dec 2022 15:08:05 +0800 Subject: [PATCH] Removes widget data ordering fix --- Shared/Widget/WidgetDataEncoder.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/Widget/WidgetDataEncoder.swift b/Shared/Widget/WidgetDataEncoder.swift index ac4ba2768..1b610a8b5 100644 --- a/Shared/Widget/WidgetDataEncoder.swift +++ b/Shared/Widget/WidgetDataEncoder.swift @@ -143,9 +143,9 @@ public final class WidgetDataEncoder { let latestData = WidgetData(currentUnreadCount: SmartFeedsController.shared.unreadFeed.unreadCount, currentTodayCount: SmartFeedsController.shared.todayFeed.unreadCount, currentStarredCount: (try? AccountManager.shared.fetchCountForStarredArticles()) ?? 0, - unreadArticles: unread.sorted(by: { $0.pubDate > $1.pubDate }), - starredArticles: starred.sorted(by: { $0.pubDate > $1.pubDate }), - todayArticles:today.sorted(by: { $0.pubDate > $1.pubDate }), + unreadArticles: unread, + starredArticles: starred, + todayArticles:today, lastUpdateTime: Date()) completion(latestData) }