batch_array_sort
Sort an array property across multiple Markdown files using a glob pattern. Optionally reverse the order and skip files where the property is missing, empty, already sorted, or not an array.
Instructions
Sort an array property in multiple files.
Args: glob: Glob pattern relative to base directory (e.g. "atoms/**/*.md"). property: Name of the array property. reverse: If True, sort in descending order. Default is ascending.
Returns: Dict with updated_count, updated_files, and warnings.
Notes: - If property doesn't exist, file is skipped. - If array is empty, file is skipped. - If array is already sorted, file is skipped. - If property is not an array, file is skipped with a warning. - Files are only included in updated_files if actually modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | Yes | ||
| reverse | No | ||
| property | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||