def sort_a_list_of_words(words, dstring_object):
    """
        sort_a_list_of_words function :

        * words : iterable of (unicode) words, like ["Μῆνιν", "ἄειδε", ...]
        * dstring_object, DSTRING object, like new_dstring(language="grc")

        Return an object whose type is type(words), sorted.
    """
    dstring_words = map(dstring_object, words)
    sorted_words = sorted(dstring_words, key=dstring_object.sortingvalue)
    return type(words)(map(dstring_object.__str__, sorted_words))
