Sort rows
Sort CSV Rows by a Selected Column
Treat a column as text or numbers and sort it in ascending or descending order. Rows with equal values retain their original order, and processing stays in your browser.
CSV processing stays in your browser
Your files are not uploaded to a server.
File selection
Choose 1 CSV file up to 50 MiB. Its name and contents are never sent outside your browser.
Drag and drop a CSV file here
1 CSV file, up to 50 MiB
Import settings
Auto-detection covers only UTF-8 and Shift_JIS. For CSV files from mainland China, Korea, Taiwan, or Western Europe, select the matching encoding manually.
How it works
Sort amounts from highest to lowest
How it works
Sort amounts from highest to lowest
Treat the Amount column as numbers and sort descending to see the largest values first.
Input example
| Product | Amount |
|---|---|
| Orange | 850 |
| Apple | 1200 |
Output example
| Product | Amount |
|---|---|
| Apple | 1200 |
| Orange | 850 |
Rows with equal values retain their original order.
Sort CSV rows by multiple columns
Sort by up to three text or numeric keys in ascending or descending order.
Features
- Set type, direction, and case handling for each key.
- Keep source order for ties and place blanks first or last.
How it works
- Choose a CSV and review the target columns.
- Set up to three keys, their type, direction, blank position, and priority.
- Run, review all columns and the first 100 rows, and download.
Before you start
- For numeric sorting, remove thousands separators and currency symbols.
- There is no date parser; use formats whose text and date order match.
View FAQs for this tool
Related tools
Filter before sorting, or calculate totals with Group & summarize.