summaryrefslogtreecommitdiff
path: root/iridescence/src/components/ProductSearch.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-16 18:41:16 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-16 18:41:16 -0500
commit0a678675ee4fbc22c12844ee7738ca5e95de01da (patch)
tree6f47d8ebf4df228fb4e73f87f2287507f3b18412 /iridescence/src/components/ProductSearch.vue
parenta71c91289f87f4c01a5e3c87b5f00a2912fd07d6 (diff)
downloadtheglassyladies-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.vue10
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
},