T TextTools

CSV Sort

Sort CSV rows by any column. Three modes: alphabetical, numeric, and natural (so 'a2' comes before 'a10').

Advertisement

How to use CSV Sort

  1. Paste CSV.
  2. Pick sort column, direction, and mode.
  3. Click Sort and copy the output.

What is CSV Sort?

Header row is preserved at the top. Numeric mode parses each cell as a number; non-numeric cells fall through. Natural mode uses locale-aware comparison so '10' sorts after '2', not before.

Advertisement

FAQ

What is natural sort?
It treats numeric runs inside strings as numbers — so 'file2.txt' sorts before 'file10.txt' instead of after.

Related tools