From 9c5b036bd537f1465e3ecacbc98a192f98a84e7f Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Mon, 16 Nov 2020 19:04:30 -0500 Subject: Featured First sorting is featured and then by-id/newest first. --- iridescence/src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iridescence/src/store') diff --git a/iridescence/src/store/index.js b/iridescence/src/store/index.js index 78ee20b..30f6cbf 100644 --- a/iridescence/src/store/index.js +++ b/iridescence/src/store/index.js @@ -11,7 +11,7 @@ export default new Vuex.Store({ searchTerm: "", products: [], busy: false, - compare: (_, b) => b.featured + compare: a => (a.featured ? -1 : 1) }, getters: { busy(state) { -- cgit v1.2.3