Sort Lines and Remove Duplicates

Paste a list and get it in order, with the repeats gone if you want them gone. Two things here are usually wrong elsewhere. Comparing characters by their number puts Z before a and puts Thai in the order of the Unicode table rather than the Thai alphabet, where a leading vowel is written before the consonant it follows. And item 10 sorts before item 9 unless the numbers inside the text are read as numbers. Both are handled by the language rules your browser already carries.

Paste some lines to sort them.

Frequently asked questions

What is wrong with the sort in my text editor?

Usually that it compares the numbers behind the characters rather than the order the language uses. That puts every capital letter before every small one, and it puts Thai in the order of the Unicode table: a word beginning with a leading vowel sorts far from where a Thai reader expects, because the vowel is written first and pronounced second.

Why does item 10 come after item 9 here?

Because the numbers inside the text are read as numbers. Compared as characters, "1" sorts before "9", so item 10 lands between item 1 and item 2. That is the correct answer to a question nobody asked.

Is my list uploaded?

No. The sorting happens in this tab. The site’s security policy sets connect-src ‘none’, so the browser blocks network requests from these pages, so a customer list or a set of keys could not be sent even if the code tried.

What is the difference between ignoring case and trimming?

Ignoring capital letters affects the comparison, so Apple and apple sort together and count as one when duplicates are removed. Trimming changes the lines themselves, so a stray space at the end of a line stops making it a different line.