Tweak sanitization rules.
Tell uniq that it's getting a sorted list.
Change variable name for clarification.