xlsx_sort
Sort Excel rows by multiple columns in Excel-compatible order, with case-insensitive text and blanks last; optionally deduplicate by a column set and return row numbers or JSON.
Instructions
Use this when you need a multi-column sort in Excel's sort order (case-insensitive text, numbers before text before logicals, blanks last), optionally unique by a column set (Excel UNIQUE). output row_numbers returns the sheet rows in order; rows_handle writes the sorted rows as NDJSON to a new cache handle; json returns a page in the xlsx_read json shape.
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>",
"by": "<by>"
},
"name": "xlsx_sort"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Sort keys: [{ column, direction? }]. direction defaults to asc. | |
| limit | No | Max rows to return (default 1000). | |
| sheet | No | Sheet name (default: first sheet). | |
| file_path | Yes | Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64). | |
| header_row | No | Header row (1-based). 0 = treat row 1 as data, no header. |