hello, was wondering how to sort a list which has different data types according to the data type,
Example if a list containing 'person' objects.
a person object wil have a name, gender and age like so:
person1 = person(name, gender, age)
so if i have 5 objects in a list and i wanna sort them first by name, then later by age, how do i go about that?