Markdown Table Sorter
The most advanced Markdown table sorter on the web. Sort rows alphabetically, naturally (item2 before item10), numerically, by currency ($), digital file sizes (KB/MB/GB), chronological dates, and semantic versions. Features multi-column tiered sorting, row reversal, shuffling, and automatic summary row pinning.
How to Use This Tool
Paste or Edit Table Data
Paste your raw Markdown table or edit cells directly in the interactive spreadsheet grid.
Choose Column & Auto-Detected Type
Click any column header or pill to sort. The engine automatically detects numbers, currency, bytes, dates, and SemVer.
Add Multi-Column Rules (Optional)
Click "+ Multi-Column Sort" to add secondary and tertiary sorting levels for tie-breaking.
Copy Clean GFM Output
Your sorted Markdown table is generated instantly with preserved alignments and pinned summary totals.
Worked Example
| Product | Category | Price | Size | | :--- | :--- | ---: | ---: | | Cloud Backup | Software | $19.99 | 10 TB | | Keyboard Pro | Hardware | $129.99 | 1.5 GB | | USB-C Hub | Accessories | $45.00 | 250 MB | | 4K Monitor | Hardware | $649.00 | 4.2 GB | | Total Value | Summary | $843.98 | 14.2 TB |
| Product | Category | Price | Size | | :--- | :--- | ---: | ---: | | USB-C Hub | Accessories | $45.00 | 250 MB | | 4K Monitor | Hardware | $649.00 | 4.2 GB | | Keyboard Pro | Hardware | $129.99 | 1.5 GB | | Cloud Backup | Software | $19.99 | 10 TB | | Total Value | Summary | $843.98 | 14.2 TB |
Multi-Type Column Sorting & Data Ordering Engine
Sorts Markdown table rows by any selected column in ascending (A-Z, 0-9) or descending (Z-A, 9-0) order. The sorting algorithm intelligently distinguishes between natural numbers, currency strings, dates, and alphabetical text to prevent alphanumeric sorting bugs (such as "10" appearing before "2").
Markdown Table Pro Tips & Best Practices
Sort Feature Matrices
OrderingSort comparison tables alphabetically by feature name or pricing tiers by cost for intuitive reading.
Numeric Rank Ordering
BenchmarksSort leaderboard or benchmark tables descending (9-0) by score to place top performers first.
Date-Based Chronology
ChangelogsFormat dates as YYYY-MM-DD (ISO 8601) to guarantee chronological ordering in changelog tables.
One-Click Reversal
Quick ToggleClick the sort button again to instantly toggle between ascending and descending order.
Common Pitfalls & How to Fix Them
Numbers sorting alphabetically (1, 10, 2)
Cause: Values contain mixed text or currency symbols that prevented numeric parsing.
Platform & Markdown Flavor Compatibility
| Platform / Specification | Support Status | Compatibility Notes |
|---|---|---|
| All Markdown Flavors | Supported | Maintains pipe table syntax during sorting. |
Frequently Asked Questions
How does Natural Sorting differ from standard ASCII sorting?▼
Standard ASCII string sorting compares characters byte-by-byte, resulting in "item10" sorting before "item2" because "1" comes before "2". Our Natural Sorting algorithm uses smart collation that groups contiguous digits into numerical values, ensuring "item2" correctly precedes "item10".
Does the sorter handle currency symbols, commas, and negative numbers?▼
Yes. The engine automatically strips currency symbols ($, €, £, ¥, ₹) and comma thousands separators (1,000.00). It also correctly interprets accounting parentheses like "(50.00)" as -$50.00, sorting negative numbers at the true start of ascending order.
Can I sort digital storage units like KB, MB, GB, and TB?▼
Yes! Our engine natively recognizes digital memory units (B, KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB). It converts each unit to equivalent raw bytes before comparing, ensuring that 500 KB < 1.5 MB < 2 GB < 1 TB.
How does Multi-Column (Tiered) sorting work?▼
Click "+ Multi-Column Sort" to establish hierarchical sorting levels. For example, you can set Level 1 to sort by Category (A-Z), and Level 2 to sort by Price (High to Low). Whenever two rows have the same category, Level 2 resolves the tie.
Will sorting my table move the "Total" summary row to the middle?▼
No. When "Pin Summary / Total Row" is enabled (default), rows labeled "Total", "Summary", or "Average" remain permanently anchored at the bottom of the table, regardless of sort direction.
Can I reverse the entire table or randomize row order?▼
Yes. The power toolbar includes 1-click "Reverse Rows" (to invert row sequence upside-down) and "Shuffle" (to randomize row ordering using Fisher-Yates shuffle), while keeping headers and pinned totals intact.
Can I sort multiple columns at once?▼
You can sort by primary column in one click, and then switch to our visual editor for fine-grained row reordering.
Need Whole Document Conversion?
MarkdownTables.com is built exclusively for Markdown tables and tabular data. If you need to convert entire Markdown documents, essays, or notes (with headings, paragraphs, lists, and images) to PDF, Word (DOCX), or PowerPoint, visit our sister platform.