Sort lines
Sort a list of lines alphabetically, numerically, by length, or shuffle it.
लाइनों को क्रम में लगाएँ — वर्णानुक्रम या संख्या से।
How to use it
- Paste your lines.
- Pick the order you want.
- Copy or download the sorted list.
About this tool
Plain alphabetical sorting compares character by character, which puts item10 before item2 because the character 1 comes before 2. Natural order reads the digits as numbers, so item2 comes first. For file names, chapter lists and anything numbered, natural order is almost always what you want.
Sorting uses your browser's locale rules, so Devanagari sorts in Devanagari order and accented Roman letters sort next to their base letters rather than at the end of the alphabet.
Tips
- Numeric mode reads each line as a number and ignores any text, which suits a column of amounts.
- Sorting by length is a quick way to find the odd truncated entry in a list.
- Shuffle is useful for randomising a question list or a draw order.
Questions people ask
Does it sort Hindi?
Yes, in Devanagari alphabetical order.
Why is item10 before item2?
That is plain alphabetical order. Tick natural order to read the digits as numbers.
Can it sort by a column?
Not directly. Paste the column you want to sort by, or use a spreadsheet for multi-column data.