from typing import Sequence
from typing import List


def _purge_tags(tags: Sequence[str]) -> List[str]:
    """
       Purge tags. Remove duplicate and sort tags

       :param tags: A sequence of tags
       :return: purged tags
    """
    return sorted(set({key.strip().lower() for key in tags if key}))