summaryrefslogtreecommitdiff
path: root/src/feeds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/feeds.c')
-rw-r--r--src/feeds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/feeds.c b/src/feeds.c
index 3fb05d14..c66b2b84 100644
--- a/src/feeds.c
+++ b/src/feeds.c
@@ -598,7 +598,10 @@ void removeEntries_Feeds(uint32_t feedBookmarkId) {
598 598
599static int cmpTimeDescending_FeedEntryPtr_(const void *a, const void *b) { 599static int cmpTimeDescending_FeedEntryPtr_(const void *a, const void *b) {
600 const iFeedEntry * const *e1 = a, * const *e2 = b; 600 const iFeedEntry * const *e1 = a, * const *e2 = b;
601 return -cmp_Time(&(*e1)->posted, &(*e2)->posted); 601 const int cmpPosted = -cmp_Time(&(*e1)->posted, &(*e2)->posted);
602 if (cmpPosted) return cmpPosted;
603 /* Posting timestamps may only be accurate to a day, so also sort by discovery time. */
604 return -cmp_Time(&(*e1)->discovered, &(*e2)->discovered);
602} 605}
603 606
604const iPtrArray *listEntries_Feeds(void) { 607const iPtrArray *listEntries_Feeds(void) {