How to remove duplicate lines and keep their order
Clean a pasted list in its original sequence and decide when differences in spacing or capitalization matter.
Identify what the order tells you
A reading queue might start with “Field Guide”, “Atlas”, “Field Guide”, then “Birdsong”. The second “Field Guide” is a duplicate, but the first belongs at the front of the queue. Sorting the list before cleaning it would put “Atlas” first and lose that priority.
Copy the list into Remove Duplicate Lines with one title per line. Keep the original available for a final comparison. A line that wraps on screen can still be one item. An actual line break starts a new item.
Decide which differences carry meaning
Start with exact matching. For the queue above, the result is “Field Guide”, “Atlas”, then “Birdsong”. If a later copy says “atlas”, turn on case-insensitive matching when the capital A is just a typing difference.
A space accidentally pasted after a title can make it look identical while preventing an exact match. Enable the option to ignore spaces at the ends when that is appropriate. Keep stricter settings for filenames, identifiers or any list in which case and spacing carry meaning.
Check both the survivors and their sequence
Look for the first few items in the original and result. “Field Guide” should still lead, and the earliest “Atlas” should still precede “Birdsong”. A quick count alone would miss an accidental reorder.
Read near-matches such as “Field Guide” and “The Field Guide” yourself. Those could be two books or two ways of naming the same one. Once you have decided what belongs, copy the finished list into its destination.