Docomint

Sort Lines (A–Z / Z–A)

Sort lines of text alphabetically or numerically, ascending or descending.

🔒 Processed on your device

Sorts a plain list of lines the way a spreadsheet's Sort A-Z column would — useful when you have a list of names, tags, or file paths in a text editor and don't want to open a spreadsheet just to reorder them.

Example: Sorting "banana, Apple, cherry" alphabetically ascending returns "Apple, banana, cherry" — capital letters sort before lowercase ones in standard order, so 'Apple' lands first.

How it works

  1. Paste a list of lines
  2. Pick alphabetical or numeric order
  3. The sorted list appears instantly, on your device

Frequently asked questions

How is numeric sort different from alphabetical sort?

Alphabetical sort compares lines as text, so "10" sorts before "2". Numeric sort reads the leading number on each line and compares by value instead.

Is my text uploaded anywhere?

No — Sort Lines (A–Z / Z–A) runs entirely in your browser using JavaScript/WebAssembly. Your text is never sent to a server.

Can I numerically sort lines that have text mixed in, like \"Item 9\" and \"Item 10\"?

Numeric sort compares the first number it finds on each line, so \"Item 9\" correctly sorts before \"Item 10\" — a plain alphabetical sort would put \"Item 10\" first since '1' comes before '9' character by character.

Related tools