sort_data_tool
Sort Serbian government open data rows by one or more columns. Specify column names and sort direction to reorder datasets.
Instructions
Sort data by one or more columns.
Shorthand for transform_data(operation='sort').
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": {
"data": "<data>",
"by": "<by>"
},
"name": "sort_data_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Column name or list of column names to sort by | |
| data | Yes | Row dicts from get_resource_data() | |
| ascending | No | Sort direction (default True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||