from typing import OrderedDict


def sortWords(wordList):
    """Removes duplicates from a list, then sorts alphabetically then by length"""
    sortedWords = list(OrderedDict.fromkeys(wordList)) #remove duplicate words
    sortedWords = sorted(sortedWords) #sort A-Z
    sortedWords = sorted(sortedWords, key=len) #sort by length
    return sortedWords