How it works
The tool reads the list top to bottom and remembers each line it has seen. When a line matches one already seen, it is dropped. With "Ignore case" on, Apple and apple count as the same; with "Ignore surrounding spaces" on, cherry matches cherry. The kept line is always the first one, exactly as written.
Example
| Input | Output (ignore case + spaces) |
|---|---|
| apple banana Apple cherry banana cherry | apple banana cherry |
To also sort the list, run the result through Sort lines.