Small update to have sorted() working in Python 3

The name of the isolate can be None, which can't be compared to strings in Python 3.