Markdown Table Sorter

Paste any markdown table and sort its rows by the column you choose. The tool infers each column’s type — number, date, boolean, or text — and compares cells the way you’d expect: 2 sorts before 10, 2024-01-15 sorts before 2025-01-15, and the sort is stable so equal rows keep their original order. Copy or download the result. Nothing leaves your browser.

Sort by
Sorted table

How sorting works

  • Numbers (cells that look like -3.14, 0.5, 1.5e-3) sort by numeric value. Unparseable cells (e.g. 10kg) go to the bottom in ascending order.
  • Dates in ISO (2024-01-15), US (1/15/2024), or EU (15.01.2024) format sort chronologically. Two-digit years resolve to 19xx for 50–99 and 20xx for 00–49.
  • Booleans (true, false, yes, no) sort with false < true.
  • Text is case-insensitive by default and uses natural sort (item-2 before item-10). Locale-aware via Intl.Collator.
  • Empty cells always sort to the bottom in ascending order, regardless of type.
  • Stability: when two rows compare equal under both keys, the original order is preserved.
  • Alignment in the separator row is preserved on the way out — the column you sorted is still right-aligned if it was right-aligned coming in.