sort_worksheet
Sort all rows in an Origin Pro worksheet by a specified column, in ascending or descending order.
Instructions
Sort all rows of a worksheet by one column.
Args: book_name: Workbook name sheet_name: Sheet name col: Column to sort by (1-based) descending: Sort high-to-low when True
Returns: Success message
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": {
"book_name": "<book_name>",
"sheet_name": "<sheet_name>",
"col": "<col>"
},
"name": "sort_worksheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_name | Yes | ||
| sheet_name | Yes | ||
| col | Yes | ||
| descending | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |