sheets_sort_range
Sorts a specified Google Sheets range by one or more columns in ascending or descending order, organizing rows by selected column indices.
Instructions
Sorts a range of data by one or more columns
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_id": "<spreadsheet_id>",
"range": "<range>",
"sort_specs": "<sort_specs>"
},
"name": "sheets_sort_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | The A1 notation range to sort | |
| sort_specs | Yes | Array of sort specifications applied in order | |
| spreadsheet_id | Yes | The ID of the spreadsheet |