How lines are compared and put in order
A computer left to itself sorts by character codes, which puts every capital before every lower-case letter and “Émile” after “Zoë”. This page sorts with the collation rules of the language you select, the rules your browser’s Intl.Collator applies. With English rules, the list Zoë, émile, Émile, adam, Zach comes out as adam, émile, Émile, Zach, Zoë. Languages disagree about some letters: German sorts “ära” before “zon”, Swedish after it, because ä is the 28th letter of the Swedish alphabet. Choose the language of the list, which is not always the language of the page.
Plain alphabetical order compares digits one at a time, so file10 comes before file2. Natural order reads digits as numbers and gives file1, file2, file10. By first number goes further and sorts by the value of the first number on each line, which suits price lists and scores: “Total 99” comes before “Total 1,250.50”. It reads 1,250.50, 1.250,50 and 1 250,50 as the same amount, and a single comma or dot followed by one or two digits as a decimal mark, so 3,5 is 3.5. “1,250” is read as one thousand two hundred and fifty, while “1.250” is read as 1.25. Lines without a number go to the end in their original order.
Removing duplicates keeps the first copy of each line in its original position, then applies the order you chose. Two lines are the same when they match after Unicode normalization, so “café” typed as one character or as e plus a combining accent counts once. With Ignore case on, “Apple” and “apple” are one line, compared with the letter rules of the selected language: in Turkish, İzmir and izmir match; in English they do not. With Ignore spaces at line ends on, “ apple ” and “apple” match as well. The result shows how many lines went in, how many came out and how many were removed, so you can check the numbers before you use the list.
Shuffle uses crypto.getRandomValues, your browser’s cryptographic random number generator, with the Fisher–Yates method and rejection sampling, so every possible order is equally likely. That is fair enough for a speaking order, a seating plan or the order of quiz questions. It is not a certified draw: the result is not recorded anywhere, so for a prize draw that other people must be able to verify, use a service that publishes its method and its results.