diff --git a/src/client/app/desktop/views/deck/deck.featured-column.vue b/src/client/app/desktop/views/deck/deck.featured-column.vue index 77d19e54c..78a5a7e3f 100644 --- a/src/client/app/desktop/views/deck/deck.featured-column.vue +++ b/src/client/app/desktop/views/deck/deck.featured-column.vue @@ -44,6 +44,7 @@ export default Vue.extend({ this.$root.api('notes/featured', { limit: 20, }).then(notes => { + notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); res(notes); this.fetching = false; this.$emit('loaded'); diff --git a/src/client/app/desktop/views/home/featured.vue b/src/client/app/desktop/views/home/featured.vue index 5b480d645..07f9088c2 100644 --- a/src/client/app/desktop/views/home/featured.vue +++ b/src/client/app/desktop/views/home/featured.vue @@ -30,6 +30,7 @@ export default Vue.extend({ this.$root.api('notes/featured', { limit: 20 }).then(notes => { + notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); this.notes = notes; this.fetching = false; diff --git a/src/client/app/mobile/views/pages/featured.vue b/src/client/app/mobile/views/pages/featured.vue index 0479bf73f..9122673be 100644 --- a/src/client/app/mobile/views/pages/featured.vue +++ b/src/client/app/mobile/views/pages/featured.vue @@ -38,6 +38,7 @@ export default Vue.extend({ this.$root.api('notes/featured', { limit: 20 }).then(notes => { + notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); this.notes = notes; this.fetching = false;