I'm trying to display a high score list that is stored in an Airtable. I can connect to the Airtable and display it (kinda) like this:
*service: highscore
*path: /highscore
*send: {"maxRecords" -> 10}
*method: GET
*success
>> response = it["records"]
*error
An error occurred!
>> i = 0
*while: i < response.size
*html
<table>
<tr>
<td> {response[i]["fields"]["Name"]} </td>
<td> {response[i]["fields"]["Score"]} </td>
</tr>
</table>
>> i = i + 1
However, I'd like to sort the collection to get the top 10 scorers, but can't figure out the right way to sort both score and name simultaneously.
I'd also like to know how to display this content in a name table with Name and Score headers, but can't quite figure out the right way.