Sorts lists of words from a dictionary file based on user-defined parameters.