diff options
Diffstat (limited to 'iridescence')
-rw-r--r-- | iridescence/src/components/ProductSearch.vue | 2 | ||||
-rw-r--r-- | iridescence/src/store/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/iridescence/src/components/ProductSearch.vue b/iridescence/src/components/ProductSearch.vue index 7d70a7c..91b28a5 100644 --- a/iridescence/src/components/ProductSearch.vue +++ b/iridescence/src/components/ProductSearch.vue @@ -34,7 +34,7 @@ export default { return { term: "", sortOptions: { - "Featured Items": (_, b) => b.featured, + "Featured Items": a => (a.featured ? -1 : 1), "In Stock": (a, b) => a.quantity < b.quantity, "Made to Order": (a, b) => a.quantity > b.quantity, "A to Z": (a, b) => a.name > b.name, 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) { |