Smart Text Tools

Home › All tools › Sort lines

Sort lines

Sort a list of lines alphabetically, numerically, by length, or shuffle it.

लाइनों को क्रम में लगाएँ — वर्णानुक्रम या संख्या से।

How to sort

How to use it

  1. Paste your lines.
  2. Pick the order you want.
  3. 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

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.

Related tools