sort_table
Sort rows in a Word table by any column, with options for numeric order and descending. Safely validates and saves changes, skipping merged-cell tables.
Instructions
Sort data rows by a column (CELL index, 0-based). Refused when vertical merges make rows interdependent. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup | No | ||
| column | Yes | ||
| numeric | No | ||
| file_path | Yes | ||
| descending | No | ||
| has_header | No | ||
| table_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||