So i want to make a copy of the filteredproducts and set it to the sortProducts, but when i use the slice method. I get the error: TypeError: filteredProducts.slice is not a