sort manga tables order by most relevant first
This commit is contained in:
@@ -38,6 +38,7 @@ export default class MangaLists extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get viewLists(): ViewList[] {
|
get viewLists(): ViewList[] {
|
||||||
|
const order = ['reading', 'paused', 'planning', 'completed', 'dropped'];
|
||||||
const lists = this.mangaStore.aniListLists;
|
const lists = this.mangaStore.aniListLists;
|
||||||
const manga = this.mangaStore.aniListManga;
|
const manga = this.mangaStore.aniListManga;
|
||||||
|
|
||||||
@@ -56,7 +57,8 @@ export default class MangaLists extends Vue {
|
|||||||
chapters: chapters,
|
chapters: chapters,
|
||||||
} as ViewEntry);
|
} as ViewEntry);
|
||||||
}),
|
}),
|
||||||
}));
|
}))
|
||||||
|
.sort((l, r) => order.indexOf(l.list.name.toLowerCase()) - order.indexOf(r.list.name.toLowerCase()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user