I am new to Airtable and am sure I am missing something very basic here. I have a base with a table of clients. I am trying to work with and better understand how to sort my table, but am clearly missing something. I have reviewed the posts I’ve found related to this topic and have not yet resolved my issue.
Following the API docs, I have modified my codes as follows.
let table = base.getTable(‘Client Appointments’);
let result = await table.selectRecordsAsync({
sorts: [
{field: “Client Name”, direction: “desc”},
]
})
All I am trying to do is simply sort my client table by the name column in des order, but the table never changes.
If I update my code to include output.table(result.records), then the output displayed following script execution in shows the outputted table with the sort order as defined in my code. However, the actual table remains unchanged.
What am I missing that is resulting in the table not sorting as expected?
Any help would be greatly appreciated.
Thank you!
Bob