Skip to content
Snippets Groups Projects
Unverified Commit 562bb584 authored by syuilo's avatar syuilo
Browse files

[Client] Improve featured notes page

parent ec3ca303
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment