fixed backwards sort

This commit is contained in:
hayden
2021-02-03 20:07:41 -09:00
parent 38e4afcc3c
commit 561f586dd1

View File

@@ -45,7 +45,8 @@ export default {
return this.$store.getters.getHomeCategories;
},
recentRecipes() {
return this.$store.getters.getRecentRecipes;
let recipes = this.$store.getters.getRecentRecipes;
return recipes.sort((a, b) => (a.dateAdded > b.dateAdded ? -1 : 1));
},
},
async mounted() {