Sort range
sort_rangeSort rows in an Excel range by one or more columns, ascending or descending, while keeping entire rows intact.
Instructions
Sort a range's rows by one or more columns, like Data > Sort in Excel.
Rows move whole. Key columns must hold values, not formulas; no merged cells.
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": {
"path": "<path>",
"sheet": "<sheet>",
"range": "<range>",
"sort_by": "<sort_by>"
},
"name": "sort_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| range | Yes | ||
| sheet | Yes | ||
| sort_by | Yes | Columns to sort by, most important first. | |
| has_header | No | First row stays in place. |