1. What does this tool do
Upload a CSV file (first row = column headers). Define one or more sort levels (#1 = main sort; #2, #3 only apply when two rows have the same value in the column above). Each level picks a column, ascending or descending, and text, number, auto, or date & time (ISO or Unix epoch). Rows are numbered so priority is clear. After sorting, review the Preview table and download the full CSV. Everything runs in your browser.
2. How to use it
- Click Choose CSV file and pick a
.csvfile (header row required). - Under Sort priority, each row shows #1, #2, тАж (order = priority). Configure Column, Direction, Compare as. Use Move up / down to change which column sorts first.
- Click Add sort level to sort by a second column after the first (each column once).
- Click Sort to apply. Review the Preview table.
- Click Download sorted CSV to save (UTF-8 with BOM for Excel).
3. How it works
- Parsing тАФ Uses the same line-based CSV parser as elsewhere on the site: comma-separated fields, quoted fields supported. Multiline cells (newlines inside quotes) are not fully supported.
- Missing cells тАФ Short rows are treated as empty cells for sorting and export.
- Stable sort тАФ Equal keys keep their original relative order.
- Numeric mode тАФ Values that are not valid numbers sort after all numbers (ascending).
- Date & time mode тАФ ISO strings beginning with YYYY-MM-DD, or Unix epoch: 10-digit seconds or 13-digit milliseconds (only if the instant falls between 2000 and 2100). Unparseable values sort after all valid instants (ascending).
4. Limits
- 50,000 data rows maximum (not counting the header).
- 5 MB file size maximum.
5. Related
For sorting whole lines or whole CSV rows as one string, use Text Sorter.