Sort articles in descending order when querying from RSS news web widget
This commit is contained in:
parent
4c3cd2fcf2
commit
b50a52acf2
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ Vue.component('rss-news', {
|
||||||
query: "select s.title as source, e.title, e.summary, " +
|
query: "select s.title as source, e.title, e.summary, " +
|
||||||
"strftime('%Y-%m-%dT%H:%M:%fZ', e.published) as published " +
|
"strftime('%Y-%m-%dT%H:%M:%fZ', e.published) as published " +
|
||||||
"from FeedEntry e join FeedSource s " +
|
"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)
|
('limit' in this.config ? this.config.limit : 10)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue