sort_by
Sort a range of rows by a specified column, identified by its header name or letter, in ascending or descending order while preserving the header row.
Instructions
Sort a range by a column identified by its header name (or letter).
order is asc or desc. Assumes the first row of range is a
header (its cells are not sorted into the body).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spreadsheet": "<spreadsheet>",
"range": "<range>",
"column": "<column>"
},
"name": "sort_by"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | asc | |
| range | Yes | ||
| column | Yes | ||
| spreadsheet | Yes |