Markdown Table Sorter
Sort any Markdown table by any column in ascending or descending order. Automatically recognizes numbers, dates, currency, and alphabetic strings while keeping headers intact.
Sort Markdown Tables by Column (Numeric & Alphabetic)
Sort any Markdown table rows alphabetically or numerically by selecting any column. Automatically preserves table headers and alignment rows while reordering rows accurately.
How to Use the Markdown Table Sorter
Paste Table
Paste your Markdown pipe table into the input editor.
Select Sort Column
Choose the column you want to sort by and toggle between Ascending and Descending order.
Copy Sorted Table
Copy the reorganized table directly or download it as a .md file for your documentation.
Key Features & Capabilities
Pro Tips & Best Practices
- •Sort product pricing, benchmarks, or release logs by date, cost, or name before publishing to your GitHub repository.
Frequently Asked Questions
How does the sorter handle numbers?
The sorting engine parses string numbers (like 125000000 and 4210) into numeric floats so they sort mathematically rather than alphabetically.
Are header rows and separator lines preserved?
Yes! The first header row and the second delimiter row (| :--- |) are kept permanently at the top. Only the body data rows are reordered.
Can I sort tables with markdown links inside cells?
Yes! The sort algorithm extracts the visible text label inside [label](url) to sort accurately.
Related Markdown Tools
Table Generator
Interactive visual spreadsheet grid for designing and formatting Markdown pipe tables.
Table Formatter
Uniformly pad cells and align column markers (:---, :---:, ---:) for pristine readability.
List Sorter
Sort bullet and numbered lists alphabetically, reverse, shuffle, and deduplicate entries.
Table to JSON
Parse Markdown tables into clean JSON objects, 2D arrays, CSV, or TSV data.