From 0a678675ee4fbc22c12844ee7738ca5e95de01da Mon Sep 17 00:00:00 2001
From: "Adam T. Carpenter" <atc@53hor.net>
Date: Mon, 16 Nov 2020 18:41:16 -0500
Subject: dug; you can do date oldest/newest sorting with dbids.

---
 iridescence/src/components/ProductSearch.vue | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'iridescence/src/components/ProductSearch.vue')

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
       },
-- 
cgit v1.2.3

