diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 18:41:16 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-11-16 18:41:16 -0500 |
commit | 0a678675ee4fbc22c12844ee7738ca5e95de01da (patch) | |
tree | 6f47d8ebf4df228fb4e73f87f2287507f3b18412 /iridescence/src/components/ProductSearch.vue | |
parent | a71c91289f87f4c01a5e3c87b5f00a2912fd07d6 (diff) | |
download | theglassyladies-0a678675ee4fbc22c12844ee7738ca5e95de01da.tar.xz theglassyladies-0a678675ee4fbc22c12844ee7738ca5e95de01da.zip |
dug; you can do date oldest/newest sorting with dbids.
Diffstat (limited to 'iridescence/src/components/ProductSearch.vue')
-rw-r--r-- | iridescence/src/components/ProductSearch.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/iridescence/src/components/ProductSearch.vue b/iridescence/src/components/ProductSearch.vue index 907602c..7d70a7c 100644 --- a/iridescence/src/components/ProductSearch.vue +++ b/iridescence/src/components/ProductSearch.vue @@ -34,13 +34,13 @@ export default { return { term: "", sortOptions: { - "Featured Items First": (_, b) => b.featured, + "Featured Items": (_, b) => b.featured, "In Stock": (a, b) => a.quantity < b.quantity, "Made to Order": (a, b) => a.quantity > b.quantity, - "Name (A-Z)": (a, b) => a.name > b.name, - "Name (Z-A)": (a, b) => a.name < b.name, - "Date Added (New to Old)": () => 0, - "Date Added (Old to New)": () => 0, + "A to Z": (a, b) => a.name > b.name, + "Z to A": (a, b) => a.name < b.name, + "Newest to Oldest": (a, b) => a.id < b.id, + "Oldest to Newest": (a, b) => a.id > b.id, "Price (Low to High)": (a, b) => a.cents > b.cents, "Price (High to Low)": (a, b) => a.cents < b.cents }, |