Hello, I have a page where I am presenting offers to users. I am trying to create a button that the user can click after the page has loaded to sort the deals from lowest to highest price. I know I can sort using the dataset settings, but I want to do it with code so that I can add more buttons to sort by different values in the dataset. Full disclosure, this is my first time trying to write code!
Button I want to use - #button87
Dataset I want it to sort - #dataset5
Action I want it to take - sort clientFacingBid (it is set to a number field in dataset) from lowest to highest
When I click the button now, nothing happens. Any help is appreciated!
Below is what I have written:
import wixData from 'wix-data';