sort_data
Reorder spreadsheet rows in place by one or more keys, keeping case names with their rows. Set ascending or descending order per key.
Instructions
Sort a spreadsheet in place by one or more keys (case names move with their rows). order may be a single value or one per key: 0/asc or 1/desc.
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>",
"variables": "<variables>"
},
"name": "sort_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source file. | |
| save | No | Optional destination path to persist the result as .sta. | |
| order | No | Ascending (0/"asc") or descending (1/"desc"). A single value or one per key. | |
| sheet | No | ||
| attach | No | Attach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed). | |
| variables | Yes | Sort key(s), most significant first. |