From 562bb5842b5737ef7eb71069899e01a263c4f4d8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 17 Feb 2019 00:28:41 +0900 Subject: [Client] Improve featured notes page --- src/client/app/mobile/views/pages/featured.vue | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client/app/mobile') diff --git a/src/client/app/mobile/views/pages/featured.vue b/src/client/app/mobile/views/pages/featured.vue index 0479bf73f8..9122673be1 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; -- cgit v1.2.3-freya