Code to Use Dropdown to Sort

I am currently using buttons to sort which works great. But I want to use a dropdown in place of the buttons .
My buttons work using the the wix;

$w("#myDataset").setSort( wixData.sort()
6  .ascending("lastName")
7  .descending("age")
8);