diff options
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 }, |