Code to Use Dropdown to Sort

@freddy So what options would the dropdown have? last name? or age? or something else entirely?
You might be interested in checking out the filter function. filter - Velo API Reference - Wix.com
as well as the setFilter function setFilter - Velo API Reference - Wix.com

something simple might be:

$w("#your_Dropdown").onChange(e => {
    $w("#your_dataset").setFilter(wixData.filter().contains("field you are filtering for", e.target.value))
}