Text

Sort Lines

Sort lines lexicographically.

How to use Sort Lines

Sort lines in ascending byte order so the same list always lines up the same way. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Input. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Sort Lines used for?

Use it to normalize a list before you diff it or before Unique Lines.

How do I use the free online Sort Lines tool?

Fill in Input. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Sort Lines?

Paste one item per line. The sort is lexicographic on the raw line text, not numeric.

What output does Sort Lines give me?

The same lines in sorted order. 10 sorts before 2 because 1 comes before 2 as text.

Is Sort Lines free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Does it ignore blank lines?

No. Blank lines are entries and sort first. Remove Empty Lines first if you do not want them.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.