diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 19:04:30 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 19:04:30 -0500 |
commit | 9c5b036bd537f1465e3ecacbc98a192f98a84e7f (patch) | |
tree | 39f891109a045e6cfea12d43eb03a982c9d8e976 /iridescence/src/components | |
parent | 0a678675ee4fbc22c12844ee7738ca5e95de01da (diff) | |
download | theglassyladies-9c5b036bd537f1465e3ecacbc98a192f98a84e7f.tar.xz theglassyladies-9c5b036bd537f1465e3ecacbc98a192f98a84e7f.zip |
Featured First sorting is featured and then by-id/newest first.
Diffstat (limited to 'iridescence/src/components')
-rw-r--r-- | iridescence/src/components/ProductSearch.vue | 2 |
1 files changed, 1 insertions, 1 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, |