sort -u removes duplicates but also reorders the file. When the order matters, there is an awk one-liner that keeps the first copy of every line where it was.
awk '!seen[$0]++' list.txt > unique.txt
It works because seen[$0] counts how often a line has appeared. The first time the count is 0, ! makes that true, and awk prints the line. Then ++ raises the count, so every later copy is skipped.
Caveat: awk keeps every unique line in memory, so a file with hundreds of millions of lines can get heavy. And never write to the file you are reading from, or you end up with an empty file.
Further reading: GNU awk manual