Hello, the airtable documentation shows that to sort a query using selectRecordsAsync you should do it as follows:
let queryResult = await table.selectRecordsAsync({
sorts: [
// sort by "Description" in ascending order
{field: "Description"},
// then by "Priority" in descending order.
{field: "Priority", direction: "desc"},
]
});
but this is apparently deprecated. How can I do it with the current codebase?