Table UtilitiesNumeric & Alphabetic Sorting

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.

Unsorted Table
4 columns detected8 rows
Sorted by "Country" (Asc)8 rows
Complete Guide & Overview

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

1

Paste Table

Paste your Markdown pipe table into the input editor.

2

Select Sort Column

Choose the column you want to sort by and toggle between Ascending and Descending order.

3

Copy Sorted Table

Copy the reorganized table directly or download it as a .md file for your documentation.

Key Features & Capabilities

Smart Numeric & Text Sorting: Detects pure numbers, currency values ($), and strings for accurate natural sorting.
Column Selector: Choose exactly which column to sort by via an intuitive dropdown menu.
Preserves Formatting: Automatically keeps pipe formatting, alignment colons (:---:), and header rows intact.
Dual Code & Preview: Verify your sorted table visually with live GitHub styling before copying.
100% In-Browser: Your tables and data are processed entirely inside your local browser.

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.