Sort the methods and attributes of classes in the class summary, otherwise, they appear in arbitrary dictionary ordering which isn't very useful.
Fix failure on Numpy < 1.5