spss_sort_cases
Sort SPSS data cases by one or more variables in ascending or descending order. Specify variable names and order to reorder rows in your dataset.
Instructions
Sort cases by one or more variables. sort_keys: list of {'variable': name, 'order': 'A'|'D'} dicts. Requires IBM SPSS Statistics.
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": {
"file_path": "<file_path>",
"sort_keys": "<sort_keys>"
},
"name": "spss_sort_cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| sort_keys | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |