CSV Sorter
The CSV sorter orders rows by the columns you nominate, ascending or descending, keeping the header row in place. Sorting is stable, so rows that compare equal stay in their original order — which is what lets you sort by a second column and then a first to get a reliable multi-level sort.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the CSV Sorter
- Paste or upload the CSV file.
- Name the column to sort by. Add more, separated by commas, to break ties with a second and third key.
- Choose the direction, and set the comparison type if the automatic choice gets it wrong.
- Copy or download the sorted file.
Example
name,score Ada,90 Grace,95
name,score Grace,95 Ada,90
Common use cases
- Ordering an export by date or score before sharing it.
- Grouping rows by category so related records sit together.
- Sorting by a key column before de-duplicating, so the row you keep is the one you want.
- Putting a file into a predictable order so two versions can be diffed.
Limitations and things to watch for
- Dates sort correctly only in a format where alphabetical order matches chronological order, such as ISO 8601. A column of dd/mm/yyyy values will not sort into date order.
- Automatic comparison is numeric-aware, so "item 10" sorts after "item 9". Choose the text option if you want strict character-by-character ordering.
- When sorting as numbers, values that are not numeric sort to the end rather than being dropped or scrambled.