Skip to content
Input
CSV
Limit
1 MiB
Runtime
Browser

Sort CSV rows by one named column

Sort data rows by one column while keeping the header fixed and preserving source order when values compare equally.

Local processingNo sign-upNo content logging

Sort rows

Inputs are limited to 1 MiB, 10,000 rows, and 256 columns.

Paste or edit the source. Tool Swim does not upload or save it.

Detection inspects the first logical row outside quoted fields.

Enter one exact header name.

Sorted CSV

Nothing is placed in a URL, account, or remote log.

What this tool does

Strict, bounded, local processing

Ordering is locale-aware, case-insensitive, and numeric-aware, so 2 sorts before 10 without silently converting stored cell values.

Stable sorting protects equal-value order

Rows are paired with their original position before sorting. When selected cells compare equally, that position breaks the tie and keeps the source order deterministic.

The header never participates in the sort and remains the first record.

Numeric-aware text is not type inference

The comparator recognizes numeric segments for useful ordering but does not rewrite, round, or coerce cell values. Define a typed schema when exact decimal or date semantics matter.

Primary references

Questions and answers

Related CSV tools