How can the dictionary
class Foo:
def __init__(self,value):
self.property = value
dictionary = {"one":Foo(1),
"two":Foo(2)}
be sorted in descending order, by the value of the Foo
object's self.property
?