 import UIKit
 
 private let reuseIdentifier = "productCell"
+
+enum SortingOptions: String {
+    case priceLowest = "Price Low to High"
+    case priceHighest = "Price High to Low"
+    case newest = "Newest"
+    case relevance = "Relevance"
+    
+    static let allValues = [priceLowest, priceHighest, newest, relevance]
+}
 
 class RCHSearchViewController: UIViewController {
 

                previousButton.isEnabled = false
                previousButton.setTitleColor(.gray, for: .normal)
            }
        }
    }
    
    var pageStart = 0 {
        didSet {
           searchForProducts()
        }
    }


        sortFilterView.isHidden = true
        if !searchTerm.isEmpty {
            autocomplete(withQuery: searchText)
            timer?.invalidate()
            timer = Timer.scheduledTimer(timeInterval: 0.5, target: self, selector: #selector(self.searchForProducts), userInfo: nil, repeats: false)
        } else {
            searchProductsView.isHidden = true
        }
