Sorting names
A list of names is in the order it was typed.
- Input: Zoe, adam, Mia
- Ascending, ignore case
- Output: adam, Mia, Zoe
Case-insensitive alphabetical order puts adam first even though the input started with Zoe.
This tool sorts a list of lines without uploading it anywhere. It can order text alphabetically or by the first number on each line, in either direction, and preserves the full line content.
Your data is processed locally in your browser and is not uploaded to our server.
Compare lines with the locale-aware collator
Sorting uses the browser’s collation rules for the page language. With “ignore case” on, “apple” and “Apple” compare as equal, and the original order decides the tie.
Key = first number found in the line
Numeric mode compares the first number on each line, including negatives and decimals. Lines without a number are placed after numbered lines and then sorted alphabetically.
A list of names is in the order it was typed.
Case-insensitive alphabetical order puts adam first even though the input started with Zoe.
A shopping list starts with numbers.
Numeric mode compares 1, 2 and 10 as numbers, not as text, so 10 does not come before 2.
Numeric mode reads the first number it finds. A line such as “version 2 beta” is compared by 2, which may not be what you want for mixed content.
Empty lines can be kept in place or removed before sorting. Removing them first avoids blank entries at the top of the output.
Lines that compare equal keep their original relative order, so sorting is predictable and repeatable.
It always keeps the whole line. Sorting compares the complete line, or the first number when numeric mode is enabled.
Alphabetical sorting compares characters, and “1” comes before “2”. Switch on numeric sorting to compare the values 10 and 2 instead.
No. “Ignore case” is on by default, so “apple” and “Apple” are treated as equal; their original order decides which comes first.
Yes. Choose “Descending” and the same comparison is applied in reverse. Ties still keep their original order.
No. Sorting happens entirely in your browser and the text is never sent to a server.