I am not getting this sorting in python 3 with a key.
If I don't use the key I get:
sorted_ent_list = entry_list.sort() TypeError: unorderable types: entry_T() < entry_T()
If I do use a member function to return private variable from entry_T class, then it says
sorted_ent_list = entry_list.sort(key=entry_T.get_word()) TypeError: get_word() takes exactly 1 positional argument (0 given)
but the only argument get_word takes is self....
I am missing something. I just want to sort the classes based on a private member variable accessed by get_word()