Runs in your browser

Sort Data

Sort rows by one or more columns, with numbers and dates sorted correctly.

Part of the Sort & Filter bot
Processed in your browser
1

Your data

2

Sort by

Rows with the same value keep their original order.
3

Sorted data

About sorting CSV & Excel data

Sort CSV & Excel data by one or more columns, the way you expect: numbers in number order, dates by date and text A to Z with 2 before 10. Add sort levels, set a custom order such as High, Medium, Low, and download the sorted file.

How to sort CSV & Excel data by several columns

  1. Drop a CSV or Excel file, or paste cells from a spreadsheet.
  2. Pick the column to sort by and the direction. Add more levels to break ties, for example Country, then Spend.
  3. Download the sorted file as CSV or Excel, or copy it back into your spreadsheet.

Sorts the way you'd expect

Plain text sorting puts "10" before "2" and "Apr" before "Jan". Sitebot detects numbers, amounts like $1,200 and dates in each column and sorts them by value. Choose Text, Number or Date yourself if you prefer.

Custom order

Some columns have their own order, such as High, Medium, Low or Mon to Sun. Choose Custom list and type the order you want. Values not in your list go after it, A to Z.

Empty cells go last

Blank cells always sort to the bottom, whichever direction you choose, so they don't crowd the top of your file.

Questions

Is my file uploaded?

No. Sorting happens in your browser, on your device.

How many sort levels can I add?

As many as you need. Each level only decides the order of rows that tie on the levels above it.

Does it understand dates like 03/04/2025?

Yes. Dates such as 2025-04-03, 03/04/2025 and 3 Apr 2025 are recognised. Ambiguous dates like 03/04 are read month-first unless the day is over 12.

Will the header row move?

No. When "First row is headers" is ticked, the header stays at the top.

Also searched as: sort csv online · sort excel by multiple columns · alphabetize list online · sort spreadsheet by date · sort csv by column · custom sort order excel