Skip to main content
HandyWeb

Sort Lines Alphabetically

Sort the lines of a list in Persian or English alphabetical order, ascending or descending. Numbers sort by value, so “2” comes before “10”.

Runs on your device.

Order
Options
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Paste your list into the input box, one item per line.
  2. Choose the order and the options.
  3. Copy the output.

Questions and Answers

Is the Persian alphabetical order correct?

Yes. پ, چ, ژ, and گ take their place in the Persian alphabet, not after all the Arabic letters. Persian words come before Latin words.

What is natural sort?

Numbers in a line are compared by value, so “chapter 2” comes before “chapter 10”. Persian, Arabic-Indic, and Latin digits all work. With the option off, numbers are compared digit by digit.

How is “Reverse” different from “Descending”?

Descending sorts the lines from the end of the alphabet to the start. Reverse does not sort: it turns the current order upside down.

Good to Know

The order comes from the Persian collation of your browser, so it can differ a little in old browsers.

Source code of this toolReport a problem on GitHub