Sort MD TablesSort Markdown tables without leaving the editor or converting your document to another format. Usage
The extension rewrites only the body-row range. Header text, the delimiter row, cell spacing, links, inline code, and other row formatting remain intact. Multi-column sortingSort MD Tables follows the established data-grid sort model:
The hover shows the active priority as Comparison behavior
You can also run the four Sort MD Tables commands from the Command Palette while the cursor is in a table header. Supported tablesThe extension targets standard Markdown pipe tables with a header delimiter row containing at least three dashes per column. Leading and trailing pipes are optional. Escaped pipes and pipes inside inline-code spans are recognized as cell content. Multiline cells and HTML Sort state and safetySorting changes the Markdown document and participates in VS Code's normal Undo history. Active multi-sort rules and the pre-sort row order are held in memory; they reset when the table body is manually edited or VS Code restarts. The already-sorted Markdown remains exactly as saved. Sort MD Tables makes no network requests, collects no telemetry, and works in untrusted and virtual workspaces. Development
Press LicenseMIT License. The full text is included in |