I am looking for the equivalent of the dataset setSort function - but working directly with a wix query collection:
$w(“#myDataset”).setSort( wixData.sort()
.ascending(“lastName”)
.descending(“age”)
);
This only sorts by incYear:
export function getTaxData() {
return wixData.query(“Tax_Reporting”)
.limit(100)
.descending(“incYear”)
.ascending(“incomeType”)
.find()
So, how do I get the above query to sort descending by incYear then ascending by incomeType?