BUG: use `key` arg of `list.sort` [1]
BUG: use `key` arg of `list.sort` [1]

to avoid comparing unorderable types.

Close #158.

[1] https://docs.python.org/3.7/library/stdtypes.html#list.sort

erocarrera/pydot,pydot/pydot