X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FNews.vue;h=1509d67daac3a3f08a25dc14630e3ff3b62cb7d7;hb=8eb8e9b271debcde7bdd687ad2f6becbfefa9046;hp=5b2c80fe3c459af964c9fdbad1b8e4aa2fe9d3c7;hpb=23e1fa0775c5c8e6c5cacacef5031c470aafd47c;p=vchess.git diff --git a/client/src/views/News.vue b/client/src/views/News.vue index 5b2c80fe..1509d67d 100644 --- a/client/src/views/News.vue +++ b/client/src/views/News.vue @@ -57,7 +57,7 @@ export default { }, created: function() { ajax("/news", "GET", { cursor: this.cursor }, res => { - this.newsList = res.newsList.sort((n1, n2) => n1.added - n2.added); + this.newsList = res.newsList.sort((n1, n2) => n2.added - n1.added); const L = res.newsList.length; if (L > 0) this.cursor = this.newsList[0].id; });