Skip to content

Commit

Permalink
RSS: fix date sorting. xibosignage/xibo#3214
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Nov 2, 2023
1 parent dbfc06d commit d7755e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Widget/RssProvider.php
Expand Up @@ -122,7 +122,7 @@ public function fetchData(DataProviderInterface $dataProvider): WidgetProviderIn
usort($feedItems, function ($a, $b) {
/* @var Item $a */
/* @var Item $b */
return $a->getDate()->getTimestamp() - $b->getDate()->getTimestamp();
return $b->getDate()->getTimestamp() - $a->getDate()->getTimestamp();
});
}

Expand Down

0 comments on commit d7755e6

Please sign in to comment.