brandonhimpfen/Markdown Table Sorter
Automatically sorts Markdown tables alphabetically or by a selected column.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Glob pattern for Markdown files to scan. | no | **/*.md |
| column | Column to sort by. Use a 1-based column number or an exact header name. | no | 1 |
| order | Sort order. Supported values are asc and desc. | no | asc |
| mode | Sort mode. Supported values are column and alphabetic. Alphabetic sorts by the full row text. | no | column |
| case-sensitive | Whether sorting should be case-sensitive. | no | false |
| check | If true, fail when files contain unsorted tables instead of modifying them. | no | false |
| min-rows | Minimum number of body rows required before a table is sorted. | no | 2 |
Outputs
| name | description |
|---|---|
| changed-files | Number of files changed or that would need changes in check mode. |
| changed-tables | Number of tables changed or that would need changes in check mode. |