0

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?

2
Contributors
2
Replies
4
Views
7 Years
Discussion Span
Last Post by soUPERMan
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.