Data & CSV

Sort CSV rows

Sort an export by one column while retaining its header.

Sort CSV rows
Esc to restore

Your inputs

Up to 25 MB per file, 50,000 data rows, 200 columns and 2 million data cells. Fully blank rows and columns are ignored before row, column and cell limits are checked. Individual tools may have smaller result or chart limits.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Uses stable sorting by a one-based column position. Numeric mode requires every cell in that column to contain a finite number. Text mode uses English locale collation. Header and all columns are preserved; CSV exports protect potential formulas.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

CSV data
Name,Group,Score
Alex,A,72
Sam,B,85
Jo,A,91
Column position (starts at 1)
3
Sort values as
Numbers
Order
Descending

Example result

Example result
NameGroupScore
JoA91
SamB85
AlexA72