i have a data sheet on my website and as of now people can sort by "ending soon"
but i have a few more categories i want them to be able to sort the list by can anybody help me code something for this , check out the page here https://www.wittysprout.com/giveaway-list
You can do that using the dataset setSort function. It's usage looks like the following -
$w("#myDataset").setSort( wixData.sort()
.ascending("lastName")
.descending("age")
);
In this case, we sort by last name, then by age.
What your can do, is connect the drop down on change event and depending on the selected item sort the dataset and above