Free Online CSV Sorter, Sort Rows By Up To Three Columns
Sort the rows of a CSV file by one, two or three columns without opening a spreadsheet. Each column is sorted as a number, a date, text or natural order, with the type chosen for you from the data. Blank values are kept at the end, the header row stays put, and a whole folder of files can be sorted in one pass.
| Nothing to show yet. |
| Nothing to show yet. |
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Sort a CSV File By Column
A few steps, and nothing is uploaded.
What to Know About Sorting a CSV
Why the type matters more than the direction.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSV Sorter
Sorting a CSV sounds like a job for a spreadsheet, and it is, right up to the point where the spreadsheet will not open the file. A few hundred thousand rows, or a file with one column full of long text, and the program either refuses or takes several minutes to become usable. Then there is the opposite problem: fifty small files that all need the same sort, where opening each one by hand is an afternoon.
The part that catches people out is not the sorting, it is the comparison. Spreadsheets guess the type of a column and sometimes guess differently from one file to the next, which is how a quantity column ends up with 100 above 9 and nobody notices until a total looks wrong. Choosing the type explicitly, and being told which type was actually used, removes that whole class of surprise.
Three sort keys rather than one is the other thing real data needs. Orders are wanted by customer and then by date. A product list is wanted by category, then by name. Doing that with one key means sorting three times in the right order and hoping the tool is stable, which most are not. Doing it in one pass with a stable sort gives the same answer every time, and that is what makes the output safe to compare against yesterday.
Frequently Asked Questions
Types, blanks, several files and what happens to the header.