Sort articles in descending order when querying from RSS news web widget

This commit is contained in:
Fabio Manganiello 2019-07-08 09:26:38 +02:00
parent 4c3cd2fcf2
commit b50a52acf2

View file

@ -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)
});