I'm new to Python, so please forgive me when using wrong terms :)
I'd like to have a list of several "objects", each of them having the same numeric attributes (A, B, C). This list should then be sorted by the value of attribute A.
In Java I'd define a Class with my attributes as members, implement Sortable to compare A, put them all in some sort of List and let Collections.sort
sort my list.
The result should "look" like that:
A B C
1 2 3
1 2 4
2 5 1
3 1 1
What is the best way to do something like that in Python?