Question: I am looking for an open source UML tool that can handle association classes. So far I have looked at several out there (ArgoUML, Fujaba, etc.) and unfortunately so far none of them support association classes. Also, the tool must have the ability to generate Java code from the diagram, including the ability to generate the proper code for the association class diagram. Thanks a lot for your input.

Cheers,
Luis

Answer: 
I'd just do:

`mylist.sort(key=lambda o: o.dict_properties["kykey"])`

You could also overide **cmp** on the class.
If speed is an issue, then use decorate-sort-undecorate:

```
    mylist_decorated = [(elem.dict_properties['mykey'], elem) for elem in mylist]
    mylist_decorated.sort()
    mylist = [elem[1] for elem in mylist_decorated] # or zip(*mylist_decorated)[1] :)

```

* this way sort() can spread its wings.