summaryrefslogtreecommitdiff
path: root/iridescence/src/store
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-16 19:04:30 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-16 19:04:30 -0500
commit9c5b036bd537f1465e3ecacbc98a192f98a84e7f (patch)
tree39f891109a045e6cfea12d43eb03a982c9d8e976 /iridescence/src/store
parent0a678675ee4fbc22c12844ee7738ca5e95de01da (diff)
downloadtheglassyladies-9c5b036bd537f1465e3ecacbc98a192f98a84e7f.tar.xz
theglassyladies-9c5b036bd537f1465e3ecacbc98a192f98a84e7f.zip
Featured First sorting is featured and then by-id/newest first.
Diffstat (limited to 'iridescence/src/store')
-rw-r--r--iridescence/src/store/index.js2
1 files changed, 1 insertions, 1 deletions
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) {