From b50a52acf2cac2402926511e6466cf2e064de86f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 8 Jul 2019 09:26:38 +0200 Subject: [PATCH] Sort articles in descending order when querying from RSS news web widget --- platypush/backend/http/static/js/widgets/rss-news/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/widgets/rss-news/index.js b/platypush/backend/http/static/js/widgets/rss-news/index.js index 2f878959f..1e16c6b07 100644 --- a/platypush/backend/http/static/js/widgets/rss-news/index.js +++ b/platypush/backend/http/static/js/widgets/rss-news/index.js @@ -18,7 +18,7 @@ Vue.component('rss-news', { query: "select s.title as source, e.title, e.summary, " + "strftime('%Y-%m-%dT%H:%M:%fZ', e.published) as published " + "from FeedEntry e join FeedSource s " + - "on e.source_id = s.id order by e.published limit " + + "on e.source_id = s.id order by e.published desc limit " + ('limit' in this.config ? this.config.limit : 10) });